commands
groupadd — create a local group
Administrative operation creating group records. -g requests a numeric GID; normally let the system choose an available ID. Check name and GID collisions before changes. Example is help only. Example assumes a fresh account lab fixture; VM-only examples require explicit authorization.
Formal Syntax & Structure
linux syntaxlinux
groupadd [OPTION] GROUPParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -g | option | requested GID |
| GROUP | operand | new group name |
Return Value
exit status and output
Administrative operation creating group records. -g requests a numeric GID; normally let the system choose an available ID. Check name and GID collisions before changes.
Working Example
Example Snippetlinux
groupadd --help >/dev/null && printf "help available\n"