The whoami command prints the user name of the effective user ID. In other words, it displays the name of the currently logged-in user.
Read more