commands.sh

groupadd

linux

Add user groups to the system. See also: `groups`, `groupdel`, `groupmod`.

More info →

Options (2)

-r, --systemboolean

Create a new system group

Example: sudo groupadd {{[-r|--system]}} {{group_name}}
-g, --gidboolean

Create a new group with the specific groupid

Example: sudo groupadd {{[-g|--gid]}} {{id}} {{group_name}}

Examples (3)

Create a new group

sudo groupadd group_name

Create a new system group

sudo groupadd [-r|--system] group_name

Create a new group with the specific groupid

sudo groupadd [-g|--gid] id group_name
made by @shridhargupta | data from tldr-pages