To add a new user in a Linux system, you can utilize the ‘useradd’ command.
sudo useradd -m john
When you use the ‘-m’ option, it not only creates the user account but also generates a home directory for the user.
After creating the user, you can use the ‘passwd’ command in the terminal to set the password for the newly created user.
sudo passwd john
You will be prompted to enter a new password.
To learn more about the ‘useradd’ command, you can access detailed documentation by typing and executing ‘man useradd’ in your terminal.