How do you find out the username of the current user?

QuestionsQuestions8 SkillsProYour First Linux LabAug, 25 2025
0174

You can find out the username of the current user in Linux by using the whoami command in the terminal. Here’s how to do it:

  1. Open the terminal.

  2. Type the following command and press Enter:

    whoami
    

This command will display the username of the currently logged-in user. For example, the output might look like this:

labex

0 Comments

no data
Be the first to share your comment!