The “w” command can be used to find the users who are currently logged in to the machine and find the processes they are running at the moment. The first line is similar to what the command uptime prints and it displays system up time and load averages. For each logged in user, it also displays information like how long they have been idle and where from they have logged in to the system. For example in the following example, the user neo (which is me) is logged in from a host with IP address 192.168.30.10.

[neo@techpulp ~]$ w
10:44:03 up 46 days,  8:01,  2 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     tty1     -                13Sep08  1days  0.09s  0.09s -bash
neo      pts/1    192.168.30.10    10:44    0.00s  0.03s  0.01s w
[neo@techpulp ~]$