Unclassified | Go to top
Monitor processor speed:
watch x86info -mhz
Determine which filesystems are mounted:
cat /etc/mtab
Information | Go to top
Find location of command
To find all locations of a command:
whereis [command]
User admin | Go to top
Create user
To create a new user [username], adding them to the users group and creating their home directory /home/[username]:
useradd -m -G users [username]
Delete user
To delete user [username], deleting their home directory /home/[username] and their mail spool:
userdel -r [username]
Add user to group
To add a user to a group:
gpasswd -a [username] [groupname]
To change a user [username]'s group membership so that they are in the groups [group1,group2,group3]:
usermod -G [group1,group2,group3] [username]
Note that with the usermod command, the user will be removed from all groups that are not listed, other than their primary group (which you can change using the -g flag).
Remove user from group
To remove a user from a group:
gpasswd -d [username] [groupname]
Change password
To change the user [username]'s password:
passwd [username]
