ID(1)
β¨ NAME β¨
id β show user information. This is the ID(1) page, from User Contributed Perl Documentation, bestie π
πΈ SYNOPSIS πΈ
id [user]
id -G [-n] [user]
id -g [-nr] [user]
id -u [-nr] [user]
id -p [user]
π DESCRIPTION π
Okay so id displays the user and group names and numeric IDs of the calling process. If the real and effective IDs are different, both are displayed; otherwise only the real ID is displayed. No cap β¨
If a user (username or user ID) is specified, the information about that user is displayed instead of the information from the calling process. It's giving "who dis?" but make it Unix π«Ά
π OPTIONS AND ARGUMENTS π
-Gβ Display all of the group IDs (effective, real, etc) separated by a space. The IDs are not in a given order. Slay, but chaotic order π-aβ Nothing. The option is included for compatibility with some versions ofid. Literally does nothing, bestie β it's just here to be friendly π-gβ Display the effective group ID.-nβ Force the options-G,-gand-uto display the matching name instead of the number for the user and group IDs. If any of the ID numbers do not have a matching name, the number will be displayed as usual. Name reveal era π₯-pβ Display the user/group information on separate lines. If the username returned bygetloginis different than the username associated with the calling program's user ID, it is displayed preceded by the phraselogin. The real ID, effective user ID (if different), real group ID, and effective group ID (if different) are displayed preceded byuid,euid,rgid, andegidrespectively. Finally, group membership is displayed with each group separated by a space. All information is displayed as names unless there is no name matching the ID. Then the ID is shown as usual. Main character energy, one line at a time π-rβ Force the options-gand<-u>to display the information associated with the real user/group IDs instead of the effective ID information. Yes,<-u>with the angle brackets is exactly what the page says β preserved, no edits, iykyk π§-uβ Display the effective user ID.
π¦ EXIT STATUS π¦
id exits with status 0 on success, or 1 if an error occurred. Simple vibe check: 0 = slayed, 1 = something went off π
π AUTHOR π
Theo Van Dinter (felicity@kluge.net) β iconic author behavior, fr fr π
π SEE ALSO π
who(1) β go check that one too, bestie π
π cute sign-off: this page is serving perl v5.42.2, dated 2026-02-15. Bye bestie, go check your IDs π
πΈ
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms