Linux commands: whoami

A quick guide to the `whoami` command, used to print the current user name

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

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

Download my free Linux Commands Handbook

👀 Sign up to my premium courses 🔥