RHEL Linux - Red Hat System Administration Practice Exam

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

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

Practice this question and more.


Which command is typically used to view and manage user accounts in Linux?

  1. userdel

  2. passwd

  3. useradd

  4. usermod

The correct answer is: useradd

The command commonly used to view and manage user accounts in Linux is useradd. This command specifically allows system administrators to create new user accounts on the system. When using useradd, you can specify various options to define the account's properties, such as the user’s home directory, shell, and user ID. While useradd itself does not display existing user accounts, it is essential for the management of user accounts as it enables the creation of new ones. Other related commands also play a significant role in user account management but focus on different aspects: - userdel is used for deleting existing user accounts. - passwd is used for changing a user's password, rather than managing account creation or properties. - usermod allows you to modify an existing user account, which includes changing the account name, shell, home directory, and more. Therefore, useradd stands out as the fundamental command for creating new user accounts, an essential part of user management in a Linux environment.