Monday, August 18, 2008

how to display the process hierarchy / tree in AIX 5.3

New in AIX 5.3, to display the hierarchy of a process:

# ps -T 1
PID TTY TIME CMD
1 - 0:00 init
4258 - 0:00 |\--errdemon
4728 - 0:00 |\--hdlm_log_push_process
5458 - 0:00 |\--hdlm_link_proc
6488 - 0:00 |\--aioserver
7300 - 0:02 |\--syncd
8092 - 0:00 |\--httpd
9912 - 0:00 ;| |\--httpd
13458 - 0:00 ;| |\--httpd
17580 - 0:00 ;| |\--httpd
17828 - 0:00 ;| |\--httpd
20642 - 0:00 ;| \--httpd
8514 - 0:00 |\--shlap
9496 - 0:00 |\--nfsd
11206 - 0:00 |\--random
12984 - 0:00 |\--rpc.lockd
13220 - 0:00 |\--srcmstr
6904 - 0:00 ;| |\--portmap
7562 - 0:00 ;| |\--sendmail
10404 - 0:00 ;| |\--IBM.LPRMd
Example:

ps -T 1

1 comment:

Anonymous said...

Thanks very much from spain