What command is used to create a new user account in Linux?

Prepare for the LPI 101-500 Exam. Study with detailed flashcards and expertly crafted multiple-choice questions. Each question is accompanied by hints and explanations, ensuring you're ready for success!

Multiple Choice

What command is used to create a new user account in Linux?

Explanation:
The command used to create a new user account in Linux is "useradd." This command is a standard utility in most Linux distributions for adding user accounts and can configure various settings such as the user's home directory, shell, and other attributes. When using "useradd," you have the flexibility to specify options; for instance, you can define the user's home directory with the `-d` option, set an initial password with `-p`, or define user groups with the `-G` option. This command works at a low level and directly interacts with the system's user database, making it a fundamental tool for system administrators managing user accounts. While "adduser" is also a commonly used command to create users, it often acts as a front-end to "useradd," providing a more user-friendly experience and additional prompts during the account creation process. However, in most cases concerning command-line utility and scripts, "useradd" is the preferred choice because it is available and consistent across various distributions. The other options "createuser" and "newuser" are not standard commands in Linux for user account creation. They may not exist in the command line or may refer to other user management scripts or tools that are not part of the

The command used to create a new user account in Linux is "useradd." This command is a standard utility in most Linux distributions for adding user accounts and can configure various settings such as the user's home directory, shell, and other attributes.

When using "useradd," you have the flexibility to specify options; for instance, you can define the user's home directory with the -d option, set an initial password with -p, or define user groups with the -G option. This command works at a low level and directly interacts with the system's user database, making it a fundamental tool for system administrators managing user accounts.

While "adduser" is also a commonly used command to create users, it often acts as a front-end to "useradd," providing a more user-friendly experience and additional prompts during the account creation process. However, in most cases concerning command-line utility and scripts, "useradd" is the preferred choice because it is available and consistent across various distributions.

The other options "createuser" and "newuser" are not standard commands in Linux for user account creation. They may not exist in the command line or may refer to other user management scripts or tools that are not part of the

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy