TestOut Linux Pro Practice Test 2025 – Complete Exam Prep Guide

Image Description

Question: 1 / 400

Using the useradd command, which option allows you to specify a home directory for the new user?

-m

-d

The option that allows you to specify a home directory for a new user when using the useradd command is indeed the -d option. This option is specifically designed to define the location of the user's home directory upon creation.

When you employ the -d flag followed by a path, it directly instructs the system to create that directory as the user's home. If the specified directory does not exist, it will not automatically create it unless you also include the -m option, which stands for "create home." The combination of these options provides flexibility in your user account setup process.

In summary, using the -d option is essential for designating a specific home directory, which plays a crucial role in user environment customization and file organization on the Linux system.

Get further explanation with Examzify DeepDiveBeta

-c

-u

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy