Linux commands: whoami
New Courses Coming Soon
Join the waiting lists
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
→ Get my Linux Command Line Handbook
Here is how can I help you:
- COURSES where I teach everything I know
- CODING BOOTCAMP cohort course - next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- Follow me on X