Which command creates a new Linux user with a comment field?

Prepare for the TestOut Labs Test. Interactive quizzes and flashcards with insights and tips for a comprehensive review. Ace your exam!

Multiple Choice

Which command creates a new Linux user with a comment field?

Explanation:
Setting the descriptive field for a new Linux user is done with the -c option on the useradd command, which fills the GECOS (comment) field in the password database. The correct command uses useradd with -c "Paul Denunzio" followed by the username, creating the account and storing the full name as the comment. Other options either use a different command that may not set the GECOS field, or place the -c flag after the username (which isn’t reliable across systems).

Setting the descriptive field for a new Linux user is done with the -c option on the useradd command, which fills the GECOS (comment) field in the password database. The correct command uses useradd with -c "Paul Denunzio" followed by the username, creating the account and storing the full name as the comment. Other options either use a different command that may not set the GECOS field, or place the -c flag after the username (which isn’t reliable across systems).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy