How to use `whoami`?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 10 2025
0124

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:

  1. Open your terminal.
  2. Type the command:
    whoami
  3. 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!

0 Comments

no data
Be the first to share your comment!