Linux groupmod命令
Linux 教程
· 2019-02-16 13:44:22
Linux groupmod命令用于更改群组识别码或名称。
需要更改群组的识别码或名称时,可用groupmod指令来完成这项工作。
语法
groupmod [-g <群组识别码> <-o>][-n <新群组名称>][群组名称]
参数:
- -g <群组识别码> 设置欲使用的群组识别码。
- -o 重复使用群组识别码。
- -n <新群组名称> 设置欲使用的群组名称。
实例
修改组名
[root@w3cschool.cc ~]# groupadd linuxso [root@w3cschool.cc ~]# tail -1 /etc/group linuxso:x:500: [root@w3cschool.cc ~]# tail -1 /etc/group linuxso:x:500: [root@w3cschool.cc ~]# groupmod -n linux linuxso [root@w3cschool.cc ~]# tail -1 /etc/group linux:x:500:
点击查看所有 Linux 教程 文章: https://www.codercto.com/courses/l/14.html
Learn Python the Hard Way
Zed A. Shaw / Addison-Wesley Professional / 2013-10-11 / USD 39.99
Master Python and become a programmer-even if you never thought you could! This breakthrough book and CD can help practically anyone get started in programming. It's called "The Hard Way," but it's re......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!