User Management
groupmod
Modify a group definition — rename or change GID.
Synopsis
syntax
groupmod [OPTION]... GROUP
Examples
Rename a group
sudo groupmod -n newname oldname
Change GID of a group
sudo groupmod -g 2000 developers
Common options
| Flag | Description |
|---|---|
| -n | New group name |
| -g | New GID |
About groupmod
The `groupmod` command modify a group definition — rename or change GID. User management commands handle creation, modification, and deletion of user accounts and groups.
Multi-user access control is a core feature of Linux. These commands are essential for system administrators managing servers, enforcing security policies, and provisioning access for teams.
The command accepts 2 commonly used flags shown above, though the full set of options is available in the man page (`man groupmod`). The 2 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More User Management Commands
Other commands in the User Management category