add new user to linux

to simply add a new user to linux use the below code

sudo useradd <user name>

if need to specify the home folder of the new user do like :

sudo useradd -d /home/<user name> <username>

to change or give password to user :

sudo passwd <user name>

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *