What command do you use to add a new group in Linux?

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!

To add a new group in Linux, the command used is groupadd. This command is specifically designed to create new groups in the system. When invoked, it allows an administrator to designate a unique name for the group and assign it specific settings, such as a group ID (GID) if desired.

The other commands mentioned serve different purposes: groupmod is used to modify an existing group; groupdel is used to delete an existing group from the system; and useradd is intended for creating new user accounts rather than groups. The functionality of each command is distinct, with groupadd being the only one specifically focused on the creation of groups, making it the correct choice for this question.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy