The whoami command will prints the user name of the currently logged-in user. In this article we will show you how to use the whoami command in linux. Use of whoami Command# Following is the basic syntax for the whoami command: whoami [OPTION] To know the user who is currently logged on the system, run