Skip to content

linux commands


useradd

Add a new user with a home directory and sudo access:

useradd clifton --shell /bin/bash
mkdir /home/clifton/
chown clifton:clifton /home/clifton
usermod -aG sudo clifton
passwd clifton

Switch to that user:

su - clifton

See also