The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

groupmod - Modify Group



This is a command related to account and group management. groupmod (group modify) is mainly used to fine-tune group settings. The basic usage of the groupmod command is groupmod [OPTIONS] GROUP_NAME.



Example: (Logged in as "root")
groupmod -n new_grp old_grp ←Rename the group "old_group" to "new_group"
groupmod -g 1001 mygroup ←Change the GID of the group "mygroup" to 1001

For more information and examples about groupmod, refer to the provided link.