In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the groups command of Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use the groups command of Linux.
Format groups [OPTION]... [USERNAME]... Displays all groups in which each entered user name belongs, and defaults to the current process user if no user name is specified (which may cause differences when the user group database changes).
Option description-- help displays help and exits-- version displays version information and exits the instance (1) to show the group to which the current user belongs.
The current user of groups root is root and there is only one primary user group root.
(2) View the group to which user root belongs.
Groups root root: root### expands knowledge
In addition to using the grpups command to see which groups the user belongs to, you can use the following methods. (1) View / etc/group. / etc/group is a user group profile, which can be viewed to query the user group to which a user belongs through the grep command. For example, check the user group that root belongs to.
Grep root / etc/group root:x:0: it can be seen that root only belongs to the primary group root with the same name, not to any other group.
(2) through the id command.
The third column of id root uid=0 (root) gid=0 (root) groups=0 (root) represents the list of user groups to which the user belongs and outputs the ID of the group.
At this point, I believe you have a deeper understanding of "how to use the groups command of Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.