whoami
# Add user to sudoers
sudo adduser <username> sudo
# Switch user
su - user2
# List all local users
cut -d: -f1 /etc/passwd
# Add a new user
sudo adduser new_username
# Remove/delete a user, first you can use:
sudo userdel username
# Then you may want to delete the home directory for the deleted user account :
sudo rm -r /home/username
# Check which users are logged in:
who
# Log-out the user by sending the KILL signal to the user-process with:
sudo pkill -KILL -u <username>
# Get the current group I'm logged in as
id -gn