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://codercto.com/courses/l/14.html

查看所有标签

Language Implementation Patterns

Language Implementation Patterns

Terence Parr / Pragmatic Bookshelf / 2010-1-10 / USD 34.95

Knowing how to create domain-specific languages (DSLs) can give you a huge productivity boost. Instead of writing code in a general-purpose programming language, you can first build a custom language ......一起来看看 《Language Implementation Patterns》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具