whoami

Print the current username

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Prints the effective username. See the flags and examples below, and run `man whoami` for the full reference.

Examples
whoamiWho am I (useful after sudo/su) · explain & risk-check →
Related
id w
Open the full explainer →More in System & Processes

Reference text is hand-written and may be incomplete — check man whoami for your version. Test destructive commands on a non-production system first.