Linux

groupadd

SafeCreate a group

groupadd <group>

Creates a group; -g sets the GID. Add members afterwards with usermod -aG.

Examples

  • groupadd developersCreate a group

Syntax

groupadd [-g GID] <group>

Before you run it

Creation only; no side effects.

Related commands

  • usermodModify a user
  • idShow UID/GID and groups
  • chgrpChange group ownership

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store