说明

  groupdel命令用户删除指定的用户组,使用很低,了解即可

格式

  groupdel [option] [groupname]

示例

[root@localhost ~]# groupdel skip #不能移除用户还存在的组
groupdel: cannot remove the primary group of user 'skip'
[root@localhost ~]# groupdel testgroup
[root@localhost ~]# tail -1 /etc/gshadow
user_new:!::
[root@localhost ~]# tail -1 /etc/group
user_new:x:1003: