whoamiArguments explained
- No required arguments.
Common examples
whoamiPrints a username such as alex or root.
sudo whoamiUsually prints root, showing the command ran with elevated privileges.
| Field | Details |
|---|---|
| Command | whoami |
| Category | System Information |
| Primary use | Prints the current effective username. |
| Syntax | whoami |