Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the groupdel command of linux to delete a user group

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 253

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report