1、top是Linux下常用的監控程序,htop相當於其加強版,顏色顯示不同參數,且支持鼠標操作。
以前一直是在使用top查看系統的情況,現在發現了一個top的升級程序-htop。吸引我的除了功能上的增強外,就是它支持了鼠標的操作。top和htop主要區別:
In 'htop' you can scroll the list vertically and horizontally to see all processes and complete command lines.
In 'top' you are subject to a delay for each unassigned key you press (especially annoying when multi-key escape sequences are triggered by accident).
'htop' starts faster ('top' seems to collect data for a while before displaying anything).
In 'htop' you don't need to type the process number to kill a process, in 'top' you do.
In 'htop' you don't need to type the process number or the priority value to renice a process, in 'top' you do.
'htop' supports mouse operation, 'top' doesn't
'top' is older, hence, more used and tested.
2.Ubuntu下軟件安裝htop
3.htop軟件使用(主菜單)
F1 幫助信息 (支持鼠標哦)
記住常用的幾個快捷鍵就行 什麼t s P M H K等等
F2 一些設置 (這個比較簡單)
F3 是可以搜索 F4是過濾出哪個進程 F5 就是上面的快捷鍵t F6是選擇進程排序的依據(默認是CPU使用率)
F7 F8可以直接修改選中進程的優先級
F9 可以直接kill掉進程
PS 一個 :選中進程 按快捷鍵s 可以strace 進程 前提是安裝了strace。
總結一句話 這個軟件很簡單 大家玩了就知道 決定比top好用
代替系統自帶的top
編輯/root/.bashrc文件:
添加如下代碼
if [ -f /usr/local/bin/htop ]; then
alias top=’/usr/local/bin/htop’
fi
更多Ubuntu相關信息見Ubuntu 專題頁面 http://www.linuxidc.com/topicnews.aspx?tid=2