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.


Top document