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:
Python Machine Learning

Python Machine Learning

Sebastian Raschka / Packt Publishing - ebooks Account / 2015-9 / USD 44.99

About This Book Leverage Python' s most powerful open-source libraries for deep learning, data wrangling, and data visualization Learn effective strategies and best practices to improve and opti......一起来看看 《Python Machine Learning》 这本书的介绍吧!

HTML 压缩/解压工具

HTML 压缩/解压工具

在线压缩/解压 HTML 代码

UNIX 时间戳转换

UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试

正则表达式在线测试

正则表达式在线测试