Create Group on Linux

In situation where you want to create a group for manage a small group of users band together for specialized functionalities, you need to create a user group. In this section, the guide shows you how to create group in Linux based operating system. Keep in mind that this function requires root or sudo permission to work.

Check Group Existence

Before creating a new group, you should always check for the status of the group.

Create Group

To create group, you simply use group add command. The idea is:

$ groupadd <name-with-dashes-as-separator>

Here is an example:

$ groupadd shared-users

Once done, you can check the creation status by getting the group again.

That's all for creating group in Linux operating system.