“whoami” is a Linux command that displays the current user’s username.
It shows the name of the user who is currently logged in to the system and is running the terminal session.
The output of the “whoami” command is a simple string representing the current username.
For example: “whoami” might return “root” or “user”.
$ whoami devlab
As can be seen in above example, when we entered “whoami” command in our terminal, it returned “devlab” which is the username of our currently logged in session to Ubuntu Linux.