Back to the command reference

groupadd

UsersFundamentals In real Linux

Create a group

Name: groupadd = group add

This command needs a real Linux system; you can practise it in real Linux mode.

Full man page

Description

groupadd creates a new group. Add users with usermod -aG, then use chgrp and chmod to let members share files.

Syntax

groupadd [OPTION]... GROUP

Common options

-g / --gid GIDGroup ID
-r / --systemA system group

Examples

  • $ sudo groupadd developers

    Create the developers group

    Explain

Related