Linux 指令篇:工作行程資訊與管理--pstree名稱:pstree 使用權(quán)限:所有使用者 使用方式: pstree [-a] [-c] [-h|-Hpid] [-l] [-n] [-p] [-u] [-G|-U] [pid|user] pstree -V 說(shuō)明:將所有行程以樹狀圖顯示, 樹狀圖將會(huì)以 pid (如果有指定) 或是以 init 這個(gè)基本行程為根 (root) ,如果有指定使用者 id , 則樹狀圖會(huì)只顯示該使用者所擁有的行程 參數(shù): -a 顯示該行程的完整指令及參數(shù), 如果是被記憶體置換出去的行程則會(huì)加上括號(hào) -c 如果有重覆的行程名, 則分開列出 (預(yù)設(shè)值是會(huì)在前面加上 * 范例: pstree init-+-amd |-apmd |-atd |-httpd---10*[httpd] %pstree -p init(1)-+-amd(447) |-apmd(105) |-atd(339) %pstree -c init-+-amd |-apmd |-atd |-httpd-+-httpd | |-httpd | |-httpd | |-httpd .... |