How do I use `whoami`?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 10 2025
0143

To use the whoami command in a Linux terminal, follow these steps:

  1. Open the Terminal: You can access the terminal from your Linux GUI or use a command-line interface.

  2. Type the Command: Enter the following command:

    whoami
  3. Press Enter: After typing the command, press the Enter key.

  4. View the Output: The terminal will display the username of the currently logged-in user.

For example, if your username is john, the output will be:

john

This command is straightforward and provides quick information about your current user identity.

0 Comments

no data
Be the first to share your comment!