Install pstree On CentOS-pstree安装

在CentOS上安装pstree,显示进程树。This is pstree V 2.38. It is a small program that shows the ps listing as a tree.

Optionally

yum -y install gcc gcc-c++ autoconf make

Dowload:

wget http://www.thp.uni-due.de/pstree/pstree.tar.gz
or
http://www.thp.uni-due.de/pstree/

Unzip:

tar -zxvf pstree.tar.gz

Compilation:

gcc -O -o pstree pstree.c

Installation:

mv pstree /usr/local/bin/
mv pstree.1 /usr/local/share/man/man1

Have fun

pstree