PrintLogo

Pstree




Use the pstree command to list processes in a tree format. It will show the process owners. Default is to start the root of the tree at init:

u-1@srv-1 u-1 $ pstree
init-+-3*[agetty]
|-ahc_dv_0
|-bdflush
|-crond---2*[sh---perl---sh-+-grep]
|                           `-iget-quote]
|-cupsd
|-devfsd
|-keventd
|-khubd
|-kjournald
|-kscand
|-ksoftirqd_CPU0
|-kswapd
|-kupdated
|-lockd
|-login---bash---startx---xinit-+-X
|                               `-sh-+-icewm-+-Eterm---bash---ssh
|                                    |       |-Eterm---bash---pstree
|                                    |       |-mozilla-bin---mozilla-bin--+
|                                    |       `-xmms---xmms---2*[xmms]
|                                    `-xscreensaver
|-login---bash---ssh
|-login---bash---perl
|-metalog---metalog
|-portmap
|-rpciod
`-scsi_eh_0
u-1@srv-1 u-1 $





This article comes from NetAdminTools:
http://www.netadmintools.com/

The URL for this story is:
http://www.netadmintools.com/art309.html

Copyright 1997-2007 NetAdminTools.com. Read our Terms of Use.