$ id
Print real and effective user and group IDs
DOCUMENTEDUsers & permissionsUbuntu 24.04 LTS baseline
Synopsis
id [OPTION]... [USER]...
What it does
- `id` reports user and group identity information.
- Without a USER operand, it reports the identity of the current process.
Examples
Show your identity and groups
idShow another user's identity
id aliceImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.