Home > Article > Operation and Maintenance > How to modify user group in linux
In Linux, you can use the groupmod command to modify the user group. This command is used to change the group identification code or name. When the parameter is set to "-n", you can set the user group name to modify the user group. The syntax is "groupmod -n new user group old user group".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How to modify user groups in Linux
The Linux groupmod command is used to change the group identification code or name.
When you need to change the identification code or name of the group, you can use the groupmod command to complete the work.
Syntax
groupmod [-g <群组识别码> <-o>][-n <新群组名称>][群组名称]
Parameters:
-g
-o Reuse the group ID.
-n
Example
Modify the group name
##Related recommendations: "Linux Video Tutorial 》
The above is the detailed content of How to modify user group in linux. For more information, please follow other related articles on the PHP Chinese website!