HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

groupmod — Modify existing user groups in the system. See also: `groups`, `groupadd`, `groupdel`. More informat

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandgroupmodmodifycliexistingusergroups
linux

Problem

How to use the groupmod command: Modify existing user groups in the system. See also: groups, groupadd, groupdel. More information: <https://manned.org/groupmod>.

Solution

groupmod — Modify existing user groups in the system. See also: groups, groupadd, groupdel. More information: <https://manned.org/groupmod>.

Change the group name:
sudo groupmod {{[-n|--new-name]}} {{new_group}} {{group_name}}


Change the group ID:
sudo groupmod {{[-g|--gid]}} {{new_id}} {{group_name}}

Code Snippets

Change the group name

sudo groupmod {{[-n|--new-name]}} {{new_group}} {{group_name}}

Change the group ID

sudo groupmod {{[-g|--gid]}} {{new_id}} {{group_name}}

Context

tldr-pages: linux/groupmod

Revisions (0)

No revisions yet.