Linux CheatSheet

Create a user without a home directory

useradd <username>

Create a user with a home directory

useradd -m <username>

Add a user to a group

adduser <user> <group>

Change primary group for a user

usermod -G <group> <user>

List all groups

cat /etc/group

Delete a group

groupdel <group>