›
All Posts
›
programming
›
display current user and group identity in Linux operating systems | id cheat-sheet
display current user and group identity in Linux operating systems | id cheat-sheet
·
134 words
·
1 minute read
Display current user and group identity.
Display current user’s ID (UID), group ID (GID) and groups to which they belong:
id
Display the current user identity:
id [-un|--user --name]
Display the current user identity as a number:
id [-u|--user]
Display the current primary group identity:
id [-gn|--group --name]
Display the current primary group identity as a number:
id [-g|--group]
Display an arbitrary user’s ID (UID), group ID (GID) and groups to which they belong:
id username
More information: https://www.gnu.org/software/coreutils/manual/html_node/id-invocation.html .
I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .