English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux groupmod command

Linux Command大全

The Linux groupmod command is used to change the group identifier or name.

You can use the groupmod command to change the group identifier or name when you need to change it.

Syntax

groupmod [-g <Group Identifier> <-o>][-n <New Group Name>][Group Name]

Parameters

  • -g <Group Identifier>  Set the desired group identifier.
  • -o  Reuse group identifier.
  • -n <New Group Name>  Set the desired group name.

Online Examples

Modify Group Name

[[email protected] ~]# groupadd linuxso 
[[email protected] ~]# tail -1 /etc/group 
linuxso:x:500: 
[[email protected] ~]# tail -1 /etc/group 
linuxso:x:500: 
[[email protected] ~]# groupmod -n linux linuxso 
[[email protected] ~]# tail -1 /etc/group 
linux:x:500:

Linux Command大全