In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge about the use of Linux's id command. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
The Linux common command id command is used to display the ID of the user, and the ID,id of the group to which the user belongs displays the actual and valid ID of the user and the group to which he belongs. If the two ID are the same, only the actual ID is displayed. If you specify only the user name, the ID of the current user is displayed.
Syntax id [- gGnru] [--help] [--version] [user name] parameter description:
-g or-group displays the ID of the group to which the user belongs.
-G or-groups displays the ID of the additional group to which the user belongs.
-n or-name displays the name of the user, the group to which he belongs, or the additional group.
-r or-real displays the actual ID.
-u or-user displays the user ID.
-help displays help.
-version displays version information.
Instance displays current user information
# id / / displays the current user ID uid=0 (root) gid=0 (root) groups=0 (root), 1 (bin), 2 (daemon), 3 (sys), 4 (adm), 6 (disk), 10 (wheel) context=root:system_r:unconfined_t displays the ID of the user group
# id-g 0 displays the ID of all groups
# id-g 0 1 2 3 4 5 6 10 is all the content of this article "what is the use of Linux's id command". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.