Linux user and group

List all user

cat /etc/passwd

List all group

cat /etc/group

Create user

adduser user-name

Create group

groupadd group-name

Check my group

groups
groups user-name

Check user group

groups user-name

Add user to group 1

usermod -a -G group-name user-name