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

command groupmod Linux

大全 command Linux

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

When you need to change the identifier or name of the group, you can use the groupmod command to do this work.

syntax

groupmod [-g <group identifier> <-o>][-n <new group name>][group name]

parameter

  • -g <group identifier>  set the group identifier to be used.
  • -o  re-use group identifier.
  • -n <new group name>  set the group name to be used.

example online

modify name group

[[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:

大全 command Linux