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 shows you what is the command for Linux to view the group to which the user belongs. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. First, open the "launcher" of the taskbar.
2. Find the depth terminal and click the running terminal.
Method 1. Groups command method groups command can view the user group to which a user belongs, only execute the groups command, and you can view the user group of the user currently logged in to the system.
To query the user group to which a specific user belongs, you can follow the user. As shown in the following figure, query the user group to which the air user belongs.
Method 2. View / etc/group method / etc/group is a user group configuration file, which can be viewed to query the user group in which a user belongs through the grep command. As shown in the following figure, the query shows that the air user belongs to the air and sudo user groups.
Method 3. Id command method id command can also view the user group to which a user belongs, only execute the id command, and you can view the user group in which the user is currently logged in.
To query the user group to which a specific user belongs, you can follow the user. As shown in the following figure, query the user group to which the air user belongs.
The above content is Linux to see what the user belongs to the group command, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.