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.


[Home] [Index]