$ groupadd docker
$ groupadd -g 1005 staff
$ groupadd -r sysgrp
| -g | specific numeric group ID |
| -r | create a system group |
| -f | exit successfully if the group already exists |
| -o | allow creating a group with a duplicate (non-unique) GID |
| --system | create a system group |
| --gid | specific numeric group ID |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.