What command is used to add a new user in Linux?

Study for the Linux Fundamentals Test. Enhance your skills with flashcards and multiple-choice questions. Each question has hints and explanations. Get ready for your exam!

The command used to add a new user in Linux is useradd. This command is part of the user management utilities in Linux and is specifically designed to create new user accounts. When invoked, useradd creates a new user profile, assigns a home directory, and sets up default configurations based on the system's configuration files.

While adduser is often available and is a higher-level command that may provide additional features such as interactive prompts for additional user information, the standard command that directly creates a user is useradd. It's also worth noting that newuser and createuser are not standard commands in Linux for adding users, making them incorrect options. Thus, useradd is recognized as the fundamental command in various Linux distributions for this purpose.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy