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

Prepare for the Linux Professional Institute Certification Level 1. Use flashcards and multiple choice questions, complete with hints and explanations. Enhance your understanding and get ready to ace the exam!

The command used to create a new user account in Linux is "useradd". This command is a standard command available in most Linux distributions and is used for adding users to the system. When you use "useradd" followed by a username, it performs the essential tasks associated with user creation, which includes creating a home directory (unless specified otherwise) and updating system files to reflect the new user.

For various distributions, "adduser" might also be available and can function similarly, but it often acts as a higher-level utility that wraps around "useradd" to provide an easier or more interactive experience. While "newuser" and "createuser" do not exist in standard Linux distributions, they might appear in other contexts or custom scripts, making "useradd" the correct and widely recognized command for this task.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy