hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/didyou_username.html (Einblicke ins Internet, 10/1995)

Displaying your current username

Displaying your current username

To display the current effective username by which you are known to the system use the command:

   whoami

This is a useful command if you have several accounts on a system and switch between them using the su command.