How to create a new group?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 03 2025
0161

To create a new group in Linux, you can use the groupadd command. Here’s the syntax:

sudo groupadd group_name

Replace group_name with the desired name of your new group. For example, to create a group named developers, you would run:

sudo groupadd developers

After executing this command, you can verify that the group was created successfully by checking the /etc/group file:

grep "developers" /etc/group

You should see output indicating that the group has been created.

0 Comments

no data
Be the first to share your comment!