$ whoami
Print effective user name
DOCUMENTEDUsers & permissionsUbuntu 24.04 LTS baseline
Synopsis
whoami
What it does
- `whoami` prints the user name associated with the current effective user ID.
Examples
Show the current effective username
whoamiImportant 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.