# Add new user
sudo useradd newuser
# Set password for newuser user
sudo passwd newuser
# Delete newuser user
sudo userdel newuser
# Create a group
sudo groupadd newgroup
# Add newuser user to newgroup group
# -a : append
# -G : group that wants to specify of | multiple/single group
# -g : default group
sudo usermod -a -G newgroup newuser
# Multiple adding groups to user
# groups: newgroup1 and newgroup2
sudo usermod -G newgroup1,newgroup2 newuser
# Check newuser user group
sudo groups newuser
# Delete newgroup group
sudo groupdel newgroup