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.
