Linux and Unix whoami command
Quick links
About whoami
Syntax
Examples
Related commands
Linux and Unix main page
Print effective userid.
whoami
whoami
Would display the name of the current userid. For example, may list root if you're logged in as root.
