Easy Tutorial
❮ Linux Comm Ping Linux Comm Exit ❯

Linux groupadd Command

Linux Command Manual

The groupadd command is used to create a new group. The information of the new group will be added to the system files.

Related Files:

Syntax

The syntax for the groupadd command is as follows:

groupadd [-g gid [-o]] [-r] [-f] group

Parameter Description:

Example

Create a new group and add a group ID.

# groupadd -g 344 tutorialpro

This will create a group with a group ID (GID) of 344 in the /etc/group file.

Linux Command Manual

❮ Linux Comm Ping Linux Comm Exit ❯