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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how linux can check which user group the current user belongs to. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
There are many users in the linux system. If you want to know which user group a user is in, how do you check it?
1. First, open the "launcher" of the taskbar.
2. Find the depth terminal and click the running terminal.
Method 1. Groups command method
The groups command can view the user groups to which a user belongs, and only execute the groups command to view the user groups of the currently logged-in users of 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 profile, which can be viewed to query the user group to 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
The id command can also view the user group to which a user belongs, execute only the id command, and view the user group to which the currently logged-in user belongs.
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.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
This is the end of the article on "how to check which user group linux currently belongs to". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please 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.