In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the Linux system how to view user groups, the article is very detailed, has a certain reference value, interested friends must read it!
Method 1: groups command method, groups command can view the user group to which a user belongs
Execute only the groups command to view the group of the user currently logged in to the system
Groups wuliang, query the user group of a specific user, followed by a user name after groups.
The Linux system checks which group the user belongs to.
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 grep
Cat / etc/group | grep wuliang
Method 3: id command method, id command can also view the user group to which a user belongs
Execute only the id command to view the user groups of the users currently logged in to the system
Id wuliang, query the user group of a specific user, followed by a user name after id.
The above is how the Linux system views all the contents of the user group. Thank you for reading! Hope to share the content to help you, more related knowledge, 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.