Name

groupadd [options] group — shadow-utils

Synopsis

/usr/sbin stdin stdout - file -- opt --help --version

The groupadd command creates a new group. In most cases, you should use the -f option to prevent duplicate groups from being created:

# groupadd -f friends

Useful options

-g gid

Specify your own numeric group ID instead of letting groupadd choose one.

-f

If the specified group exists already, complain and exit.

Get Linux Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.