cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 50 Views

Current User Logged In

Which of the following commands displays the username
of the currently logged in user?

- who

- whoami

- id

- username

 

 

Trevor "Red Hat Evangelist" Chandler
Labels (3)
0 Kudos
1 Reply
Ad_astra
Flight Engineer Flight Engineer
Flight Engineer
  • 15 Views

Hi

The answer to this question is the 'whoami' command.

The 'who' command returns all the users currently logged in to the system.

The 'id' command returns the current user's id (uid), their group id (gid) and all groups they are members of.

I am not aware of the username command!

Regards

AA

0 Kudos
Join the discussion
You must log in to join this conversation.