TestOut Linux Pro Practice Test 2025 – All-in-One Guide to Master Your Certification!

Question: 1 / 400

What command is used to create a new user account with a comment?

useradd -c

The command to create a new user account while also allowing you to include a comment about that user is structured as follows: "useradd -c." The useradd command is fundamentally used in Linux to add new user accounts, and the -c option specifically stands for "comment." This allows the system administrator to provide additional information about the user, such as the full name or other relevant description, which can be useful for system management and user identification.

In practice, using such a command would look like this: `useradd -c "John Doe" johndoe`, which creates a new user account named "johndoe" with a comment specifying "John Doe."

The other options either do not serve the purpose of creating a new user account or are not valid commands in the context described. For example, the usermod command is used to modify existing user accounts rather than create new ones. The adduser command is typically a higher-level interface that may not offer the '-c' option alone in all distributions. Finally, createuser is not a recognized command in standard Linux distributions.

Get further explanation with Examzify DeepDiveBeta

usermod -c

adduser -m

createuser -c

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy