To add a new user in Linux, you can use the adduser command followed by a space and your name for the user in Linux.
For example, let's say you want to create a new user called john, you can use the adduser command like this,
# Add a new user
sudo adduser john
- Sometimes you may need to use the
sudocommand before theaddusercommand to obtain the correct privileges to execute the command.
After executing the adduser command, you may need to add a password for the user you just created, to do that see How to create a password for a user in Linux?.
Try executing the above command in this online terminal to see the result.