whoami command is used both in Unix Operating System and as well as in Windows Operating System. It is basically the concatenation of the strings “who”,”am”,”i” as whoami. It displays the username of the current user when this command is invoked.
Who and who am I command difference?
Effectively, who gives the list of all users currently logged in on the machine and with whoami you can know the current user who is in the shell.
What information does the Who Am I command display?
Description. The who command displays information about all users currently on the local system. The following information is displayed: login name, tty, date and time of login. Typing who am i or who am I displays your login name, tty, date and time you logged in.