ID(1)
π ID(1) β the id page, but make it cute π
okay so bestie, welcome to id from the General Commands Manual π
this is genuinely one of those little commands you'll use forever, so let's get into it.
β¨ NAME β¨
id β prints user and group info for every USER you name, or (if you don't name anybody at all) for the current user π«Ά
πΈ SYNOPSIS πΈ
id [OPTION]... [USER]...
π¦ DESCRIPTION π¦
Print user and group information for each specified USER, or (when USER omitted) for the current user. That's it, that's the whole job, and it does it flawlessly no cap π
π OPTIONS π
-a,--ignoreβ ignore, for compatibility with other versions. literally just vibes, it's here so other versions of the tool don't get mad at you π-Aβ Display the process audit user ID and other process audit properties, which requires privilege (not available on Linux).-u,--userβ Display only the effective user ID as a number.-g,--groupβ Display only the effective group ID as a number-G,--groupsβ Display only the different group IDs as white-space separated numbers, in no particular order.-pβ Make the output human-readable. Each display is on a separate line. it's giving readable, we love her β¨-n,--nameβ Display the name of the user or group ID for the-G,-gand-uoptions instead of the number. If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.-Pβ Display the id as a password file entry.-r,--realβ Display the real ID for the-G,-gand-uoptions instead of the effective ID.-z,--zeroβ delimit entries with NUL characters, not whitespace; not permitted in default format π¨-Z,--contextβ print only the security context of the process (not enabled)-h,--helpβ Print help-V,--versionβ Print version[USER]β the optional USER you can hand over in the synopsis, bestie π
π EXTRA π
The id utility displays the user and group names and numeric IDs, of the calling process, to the standard output. If the real and effective IDs are different, both are displayed, otherwise only the real ID is displayed. π
If a user (login name or user ID) is specified, the user and group IDs of that user are displayed. In this case, the real and effective IDs are assumed to be the same. periodt.
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
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 all groups the current user belongs to:
id [-Gn|--groups --name]
Display an arbitrary user's ID (UID), group ID (GID), and groups to which they belong:
id username
Skip name lookup and specify the UID number explicitly:
id +uid_number
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π be gentle with her, she's still growing.
okay that's the whole page bestie, you ate that π
this was ID(1) from the General Commands Manual, running v(uutils coreutils) 0.12.0, dated 2026-09-25 β mwah, go forth and id responsibly πβ¨π¦π
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms