whoami command in Linux is used to display the name of the currently logged-in user in a shell. It displays the user name associated with the current effective user ID.
Uses of whoami command with example
To get help about whoami command and find available options for whoami command, use
whoami --help command.
Display current version
To display the currently installed version of the whoami command use whoami –version command.
Using whoami command