Look who log in on your Linux system and what they do



Configuration for GNU Linux Fedora Computer using Linux Command

 

    Look who's on the system.  How to display the user that currently use / log on and what are they doing right now your Linux system??? The w command can be use to show who is logged on and what they are doing on Linux.  The w command example below show login user and display what they are doing on the system... the w command below test on Linux Fedora 9 system.

W command example and command output:

w command to display current login user and what they do on the system

[root@fedora ~]# w

20:09:10 up 3:05, 5 users, load average: 0.01, 0.02, 0.00

USER TTY   FROM        LOGIN@ IDLE  JCPU  PCPU  WHAT

root tty7  :0          17:07 11.00s 2:28  2:28  /usr/bin/Xorg :

root pts/1 192.168.1.3 18:26 0.00s  0.26s 0.03s w

root pts/2 :0.0        18:34 36:06  0.16s 0.16s bash

root pts/3 :0.0        18:35 35:55  0.12s 0.12s bash

root pts/4 :0.0        20:07 42.00s 0.15s 0.15s bash

[root@fedora ~]#

 

The w command output above give:

1.  System uptime:   20:09:10 up 3:05, 5 users, load average: 0.01, 0.02, 0.00

2.  The user name that log in:   USER

3.  on TTY:  TTY

3.  Location from:  FROM

4. Time login:  LOGIN@

5. Resources JCPU :  JCPU

6. Resources PCPU:  PCPU

7.  and What are they do on the system on the time you execute the w command:  WHAT

 




1 comments:

linux gzip example said...

Good tip.

very useful practical tip