The whoami
command is a utility that displays the current user's username.
To use the whoami
command, you can simply type whoami
at the command prompt and press Enter
. This will display the current user's username.
For example:
refer:ot lautturi.com$ whoami user1
This will display the username of the current user, user1
.
The whoami
command does not have any options or arguments, and simply displays the current user's username.
It is important to note that the whoami
command displays the current user's username as it is stored in the system, and not the user's real name or other information.
For more information about the whoami
command and its usage, you can consult the documentation for your specific Unix or Linux system.