Skip to content
FLAVIO COPES
flaviocopes.com
2026

Linux commands: whoami

By

Learn how the Linux whoami command prints the user name currently logged in to your terminal session, and how it differs from the more detailed who am i.

~~~

Type whoami to print the user name currently logged in to the terminal session:

Terminal window showing the whoami command executed, returning flavio as the current user

Note: this is different from the who am i command, which prints more information

The whoami command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

Tagged: CLI · All topics
~~~

Related posts about cli: