id
# Display current user's id (uid), group id (gid)
# and groups to which they belong
id
# Display the current user identity as a number
id -u
# Display the current group identity as a number
id -g
# Display an arbitrary user's ID (UID), group ID (GID)
# and groups to which they belong (e.g, id tux)
id username
References​
- tldr InBrowser.App. (n.d.). https://tldr.inbrowser.app/pages/common/id
- HTB Academy. (n.d.). Linux Fundamentals: The Shell: System Information. https://academy.hackthebox.com/module/18/section/70