All about Information Technology!

bash

Turn on bash smart Completion

Edit file /etc/bash.bashrc sudo gedit /etc/bash.bashrc Uncomment the following lines, by removing the # in the beginning of the lines: #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi

>>

, , , , , , , ,

List all linux users & groups

List all users: cat /etc/passwd | cut -d: -f1   List all users who have a home directory: cat /etc/passwd | grep “/home” | cut -d: -f1   List all groups: cat /etc/group | cut -d: -f1   List all user’s groups: groups [user_name]  

>>

, , , , ,