How add a new user using the command line on Ubuntu

How to create a new user using the adduser command, with adduser we will create the new user and add it to the sudo group, adduser is installing in all Debian-based distributions, such as Ubuntu.




Open a Terminal, give the key combination Ctrl + Alt + T

oder in Ubuntu 18.04.2 LTS (Bionic Beaver) Oben links in der Ecke auf das Symbol klicken

icon activies

in dem Fenster "Type to search..."

window search ubuntu ,

Schreibt, Terminal.


1. Creating New Users

The new user that I am going to create is called nature. I create the user nature with adduser

The syntax

sudo adduser <new_user>

Written in a Terminal

linux@linuxusers:~$ sudo adduser nature


How to see this on a Terminal

nuevo usuario


For the new user can execute the sudo command, we add it to the sudo group, add the user nature to the sudo group.

The syntax

sudo adduser <user_name> sudo

Written in a Terminal

linux@linuxusers:~$ sudo adduser nature sudo

You must restart your machine for the changes to take effect.

Restart your computer

linux@linuxusers:~$ reboot


How the login screen looks, mine nature.

nuevo usuario


2. Delete a user account

Cancel the user nature, but don't forget to be out of the user, when you to want to cancel it....

The syntax

sudo userdel -r <user_name>

Written in a Terminal

linux@linuxusers:~$ sudo userdel -r nature

Restart your computer

linux@linuxusers:~$ reboot









You comment is welcome: