Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 713 — #739
i
i
i
i
i
i
i
i
28
System Monitoring Utilities
$ pstree -pa
init,1
|-atd,1255
[...]
‘-zsh,1404
‘-startx,1407 /usr/X11R6/bin/startx
‘-xinit4,1419 /suse/jj/.xinitrc [...]
|-X,1426 :0 -auth /suse/jj/.Xauthority
‘-ctwm,1440
|-xclock,1449 -d -geometry -0+0 -bg grey
|-xload,1450 -scale 2
‘-xosview.bin,1451 +net -bat +net
28.7 Who Is Doing What: w
With the command w, find out who is logged onto the system and what
each user is doing. For example:
$ w
15:17:26 up 62 days, 4:33, 14 users, load average: 0.00, 0.04, 0.01
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
jj pts/0 30Mar04 4days 0.50s 0.54s xterm -e su -l
jj pts/1 23Mar04 5days 0.20s 0.20s -zsh
jj pts/2 23Mar04 5days 1.28s 1.28s -zsh
jj pts/3 23Mar04 3:28m 3.21s 0.50s -zsh
[...]
jj pts/7 07Apr04 0.00s 9.02s 0.01s w
jj pts/9 25Mar04 3:24m 7.70s 7.38s mutt
[...]
jj pts/14 12:49 37:34 0.20s 0.13s ssh totan
The last line shows that user jj has established a secure shell (ssh) connec-
tion to the computer totan.
If any users of other systems have logged in remotely, the parameter -f
will show the computers from which they have established the connection.
713
SUSE LINUX Enterprise Server










