Linux groupmod命令

更新时间: 2019-10-16 12:40

Linux groupmod命令用于更改群组识别码或名称。

需要更改群组的识别码或名称时,可用groupmod指令来完成这项工作。

语法

groupmod [-g <群组识别码> <-o>][-n <新群组名称>][群组名称]

参数

  • -g <群组识别码>  设置欲使用的群组识别码。
  • -o  重复使用群组识别码。
  • -n <新群组名称>  设置欲使用的群组名称。

实例

修改组名

[root@ codercto.com ~]# groupadd linuxso 
[root@ codercto.com ~]# tail -1 /etc/group 
linuxso:x:500: 
[root@ codercto.com ~]# tail -1 /etc/group 
linuxso:x:500: 
[root@ codercto.com ~]# groupmod -n linux linuxso 
[root@ codercto.com ~]# tail -1 /etc/group 
linux:x:500:
Head First Design Patterns

Head First Design Patterns

Elisabeth Freeman、Eric Freeman、Bert Bates、Kathy Sierra、Elisabeth Robson / O'Reilly Media / 2004-11-1 / USD 49.99

You're not alone. At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire),......一起来看看 《Head First Design Patterns》 这本书的介绍吧!

XML、JSON 在线转换

XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具

RGB CMYK 转换工具

RGB CMYK 互转工具

HEX CMYK 转换工具

HEX CMYK 转换工具

HEX CMYK 互转工具