What command allows you to view the account creation configuration directives within the /etc/default/useradd file?

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

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that allows you to view the account creation configuration directives within the /etc/default/useradd file is useradd -D. This command is specifically designed to display the default values that will be used when creating new user accounts on the system.

When you execute useradd -D, it retrieves and presents the settings such as the default home directory, shell, and other configuration options that affect how new user accounts are created. The information is directly pulled from the /etc/default/useradd file, making this command effective for system administrators who need to confirm or adjust how new accounts will be established.

The other commands provided in the options do not exist in the standard Linux command set or do not serve the purpose of displaying user account creation configurations, which is why they would not provide the required information.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy