Linux Comm Groupmod
# Linux groupmod Command
[ Linux Command Manual](#)
The Linux groupmod command is used to change a group's identification number or name.
When you need to change a group's identification number or name, you can use the groupmod command to accomplish this task.
### Syntax
groupmod
**Parameters**:
* -g Sets the group ID to be used.
* -o Allows reuse of a group ID.
* -n Sets the new group name to be used.
### Example
Change the group name
[root@example.com ~]# groupadd linuxso [root@example.com ~]# tail -1 /etc/group linuxso:x:500: [root@example.com ~]# tail -1 /etc/group linuxso:x:500: [root@example.com ~]# groupmod -n linux linuxso [root@example.com ~]# tail -1 /etc/group linux:x:500:
[ Linux Command Manual](#)
YouTip