O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

groupadd — stdin  stdout  - file  -- opt  --help  --version

Synopsis

groupadd [options] group

The groupadd command creates a 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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required