addgroup
Quick Reference
Command Name:
addgroup
Category:
user management
Platform:
linux
Basic Usage:
Common Use Cases
Syntax
addgroup [options] [--gid ID] [--system] [--group] group
Options
Option | Description |
---|---|
--system | Create a system group (low GID) |
--gid ID | Use ID for the group ID instead of automatic selection |
--firstgid ID | Use ID as the smallest GID when automatically selecting |
--lastgid ID | Use ID as the largest GID when automatically selecting |
--group | Selects the group creation mode |
--force-badname | Allows group names that don't conform to the strict policy |
--quiet | Suppress informational messages, only show warnings and errors |
--debug | Be verbose when processing and show debugging information |
--conf FILE | Use FILE instead of the default configuration file |
--help | Display help information and exit |
--version | Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the addgroup
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
# Create a new group with default settings addgroup developers
Advanced Examples:
# Create a system group with a specific GID addgroup --system --gid 850 daemons