Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the groupdel command of linux to delete a user group

Shulou Source: shulou.com Published: 2022-06-02 18:40:40 11月11日 Update

Xiaobian to share with you the use of linux groupdel command to delete user groups, I hope you read this article after the harvest, let us discuss it together!

groupdel command is used to delete the specified workgroup. The system files to be modified by this command include/ect/group and/ect/gshadow.

userdel modifies the system account file, deleting all items associated with GROUP. The given group name must exist. If the group still includes some users, they must be deleted before the group can be deleted.

Syntax format: groupdel [parameter] [group name]

Common parameters:

-h Display help information-R Apply changes in chroot_dir directory and use configuration files in chroot_dir directory

Reference Example

Delete linuxcool workgroups using groupdel:

[root@linuxcool ~]# groupdel linuxcool

Check whether linuxcool group is deleted successfully:

[root@linuxcool ~]# more /etc/group|grep linuxcool

The linuxcool group does not exist in the/etc/group configuration file, indicating that it has been deleted.

After reading this article, I believe you have a certain understanding of the use of linux groupdel command to delete user groups. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Tags: Commands users files user groups parameters workgroups directories articles systems work configuration success information name finished examples commonly used more formats knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft Shulou Tech Info Shulou Technology Apple