Linux who command

Linux who command

 Linux who command


Use who command is used to find current logged-in users in your system along with other useful details. You can find details like remote IP address, terminal details, date/time of login, etc.

Syntax:

$ who [options]

Find All Login Users

List all users currently logged in to your system.

$ who

Output:

rahul pts/8 2017-09-05 16:23 (192.168.1.10)
root pts/9 2017-09-05 17:32 (192.168.1.13)

Find Current Login User

You can also use the following command to print the username of the current logged-in user.

$ who am i

Output:

rahul pts/9 2017-09-05 17:32 (192.168.1.10)

Reactions

Post a Comment

0 Comments

close