Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux groupadd Command

Linux groupadd Command

Linux Command Reference Linux Command Reference

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

Related files:

Syntax

The syntax of 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 runoob

At this point, an entry with a group ID (GID) of 344 is created in the /etc/group file.

Linux Command Reference Linux Command Reference