In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to use the groupdel command to add or delete groups in Linux, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
Groupadd
Specify the group name to create a new group account, and you can get new group values from the system if needed.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Groupadd [options] group
2. List of options
Option
Description
-- help
Show help documentation
-- version
Show command version
-g gid
Specify group id
-r
Create a system group
-f
Add an existing group account and the system will get an error message and end the groupadd. If this is the case, the group will not be added (if this is the case, the system will not add it again), but also the-g option can be added at the same time. When you add a gid, the gid does not have to be the only value, but without the-o parameter, the result will be displayed after the group is built.
3. Files
/ etc/group, group information.
/ etc/gshadow, group encrypted messages.
4. Examples
Create a group and specify the id of the group
[root@localhost david] # groupadd group01-g 999 / / create a group and specify id
[root@localhost david] # tail-n 2 / etc/group / / View group information
User01:x:502:
Group01:x:999:
Groupdel
Delete the group. If there is a user in the lease, you must delete the user first.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Groupdel group
2. List of options
Option
Description
-- help
Show help documentation
-- version
Show command version
3. Examples
Delete a group
[root@localhost david] # groupdel group01 / / Delete a group
[root@localhost david] # tail-n 2 / etc/group / / View group information, deleted
Webalizer:x:67:
User01:x:502:
On how to use the groupdel command in Linux to add or delete groups is shared here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.