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

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command used to create a new user account in Linux is "useradd." This command is part of the standard set of user administration tools available in most Linux distributions. When executed, it adds a new user account to the system with specified attributes such as username, home directory, and default shell.

Though "adduser" is a command that can also be used for creating user accounts, it is often merely a script that utilizes "useradd" behind the scenes. It usually provides a more user-friendly interface and prompts for additional user information during the account creation process. However, if considering which command is the primary tool for user account creation, "useradd" is the correct answer.

Other options like "createuser" and "newuser" do not exist in the standard Linux command set for user creation, which further solidifies "useradd" as the accurately designated command for this task.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy