The whoami command is used in Unix-like operating systems to display the username of the current user who is logged into the terminal session. When you run the command, it outputs the effective username associated with the current user ID.
Example Usage:
To use the whoami command, simply type it in the terminal and press Enter:
whoami
Output:
The output will be the username of the user currently logged in. For example, if your username is "john", the output will be:
john
This command is useful for verifying which user account you are operating under, especially when working with multiple user accounts or permissions.
