LPI Linux Essentials D281 and C851 Practice Exam – Prep Guide & Practice Tests

Session length

1 / 20

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

deluser

groupmod

usermod

useradd

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.

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy