Linux commands: whoami
By Flavio Copes
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:

Note: this is different from the
who am icommand, which prints more information
The
whoamicommand works on Linux, macOS, WSL, and anywhere you have a UNIX environment
~~~
Related posts about cli: