Ubuntu Basic Terminal commands Adding new user


adduser command adds a user to the system. In order to add a new user type:

sudo adduser <user_name>


sudo adduser tom

After typing the above command, you will be prompted to enter details about the new user, such as new password, user Full name, etc.

Below is the information that user will be asked to fill in order to add a new user:

Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for tom
Enter the new value, or press ENTER for the default
    Full Name []: Test User
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
Is the information correct? [Y/n] y