![]() |
||
|
Linux 指令篇:工作行程資訊與管理--pstree名稱:pstree 使用權限:所有使用者 使用方式: pstree [-a] [-c] [-h|-Hpid] [-l] [-n] [-p] [-u] [-G|-U] [pid|user] pstree -V 說明:將所有行程以樹狀圖顯示, 樹狀圖將會以 pid (如果有指定) 或是以 init 這個基本行程為根 (root) ,如果有指定使用者 id , 則樹狀圖會只顯示該使用者所擁有的行程 參數: -a 顯示該行程的完整指令及參數, 如果是被記憶體置換出去的行程則會加上括號 -c 如果有重覆的行程名, 則分開列出 (預設值是會在前面加上 * 范例: 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 .... |