Which command adds a new group to the system?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command adds a new group to the system?

Explanation:
Creating a new group is done with the groupadd command. It adds a new group definition to the system by creating an entry in /etc/group, and you must provide the group name as an argument—for example, groupadd developers would create a group named developers. The other options don’t create new groups: groupmod is for modifying an existing group, and an invalid option like -n isn’t part of the groupadd syntax. Simply typing the command without a name wouldn’t specify what group to create, so it wouldn’t succeed.

Creating a new group is done with the groupadd command. It adds a new group definition to the system by creating an entry in /etc/group, and you must provide the group name as an argument—for example, groupadd developers would create a group named developers. The other options don’t create new groups: groupmod is for modifying an existing group, and an invalid option like -n isn’t part of the groupadd syntax. Simply typing the command without a name wouldn’t specify what group to create, so it wouldn’t succeed.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy