What command can be used similarly to adduser, including options for shell, home, and groups?

Prepare for the LPI Linux Essentials Exam with our comprehensive quiz. Study with interactive flashcards and multiple choice questions, with detailed hints and explanations for each. Ace your exam with confidence!

The command that serves a similar function to adduser, allowing the specification of options such as the shell, home directory, and groups for a new user is useradd.

This command is generally used to create a new user account in a Linux system, and it provides several command-line options that enable you to customize the new user's settings. You can specify the user's login shell using the -s option, define the home directory with the -d option, and assign the user to specific groups with the -G option. This level of customization is essential for system administrators who want to configure user accounts comprehensively when they are added to the system.

While adduser may offer a more user-friendly approach, useradd is the underlying command that performs the actual task of creating a user, and it allows for fine-tuned configuration that meets specific administrative needs.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy