Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

groupadd

Create a new group

Syntax

groupadd [OPTION]... GROUPNAME

Common Options

-gSpecify group ID
-rCreate system group
-fForce (no error if exists)
-oAllow non-unique GID
-pSet group password

Common Examples

groupadd developers

Create group

groupadd -g 2000 developers

Create with specific GID

groupadd -r sysgroup

Create system group

groupadd -f existinggroup

No error if exists

groupadd -g 3000 -o newgroup

Allow non-unique GID

Related Tools

More Code & Dev Tools