Unix Check Who Logged Computer

Unix Check Who Logged Computer

Sometime while working on Unix/Linux system you would like to check who else logged on the computer same as where I am logged in. You have many options are available to check this out as below:

  • This will print currently logged in users on Unix box in single line format:

$ users

  • This will give you more information like: user name, data time , terminal connected to etc…

$ who

  • Below is my favorite give brief about user who logged on to the system:

$ w

  • Display list of recent system use for all users

$ last

$ last | less

Outputs:

$ users
javahonk
$ who
javahonk  pts/0        2015-12-20 00:21 (172.31.48.51)
$ w
 00:25:51 up 68 days, 14 min,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
javahonk  pts/0    172.31.48.51     00:21    0.00s  0.00s  0.00s w
$

Leave a Reply

Your email address will not be published. Required fields are marked *