The adduser
command in Linux is used to create a new user account. It is a more user-friendly alternative to the useradd
command. Here’s an example:
This command creates a new user username
and prompts you to set a password and provide other details (such as full name). To create a user with a specific home directory or shell, you can use:
To assign the user to a group:
It simplifies the process compared to using useradd
.