In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.