Datasheet
“main” (Installation and Administration) — 2004/6/25 — 13:29 — page 712 — #738
i
i
i
i
i
i
i
i
$ ps www -p $(pidof xterm)
PID TTY STAT TIME COMMAND
9025 ? S 0:01 xterm -g 100x45+0+200
9176 ? S 0:00 xterm -g 100x45+0+200
29854 ? S 0:21 xterm -g 100x75+20+0 -fn \
-B&H-LucidaTypewriter-Medium-R-Normal-Sans-12-120-75-75-M-70-iso10646-1
4378 ? S 0:01 xterm -bg MistyRose1 -T root -n root -e su -l
25543 ? S 0:02 xterm -g 100x45+0+200
22161 ? R 0:14 xterm -g 100x45+0+200
16832 ? S 0:01 xterm -bg MistyRose1 -T root -n root -e su -l
16912 ? S 0:00 xterm -g 100x45+0+200
17861 ? S 0:00 xterm -bg DarkSeaGreen1 -g 120x45+40+300
19930 ? S 0:13 xterm -bg LightCyan
21686 ? S 0:04 xterm -g 100x45+0+200 -fn \
lucidasanstypewriter-12
23104 ? S 0:00 xterm -g 100x45+0+200
26547 ? S 0:00 xterm -g 100x45+0+200
28.6 Process Tree: pstree
The command pstree produces a list of processes in the form of a tree:
$ pstree
init-+-atd
|-3*[automount]
|-bdflush
|-cron
[...]
|-usb-storage-1
|-usb-storage-2
|-10*[xterm---zsh]
|-xterm---zsh---mutt
|-2*[xterm---su---zsh]
|-xterm---zsh---ssh
|-xterm---zsh---pstree
|-ypbind---ypbind---2*[ypbind]
‘-zsh---startx---xinit4-+-X
‘-ctwm-+-xclock
|-xload
‘-xosview.bin
The parameter -p adds the process ID to a given name. To have the com-
mand lines displayed as well, use the -a parameter:
712
28.6. Process Tree: pstree










