To use the whoami command, simply open your terminal and type the command followed by pressing the Enter key. Here’s how you do it:
- Open your terminal.
- Type the command:
whoami - Press Enter.
The terminal will then display your current username.
Example:
$ whoami
john_doe
This output indicates that the logged-in user is john_doe. If you have any more questions or need further assistance, let me know!
