`
icarusli
  • 浏览: 524133 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Htop安装使用

阅读更多
Htop是个好东西

htop安装
htop官网源码下载
http://sourceforge.net/projects/htop/
http://blog.chinaunix.net/attachment/attach/51/07/43/4351074313b2f6b27f0272261006d2e8ae8466fb.zip
# mkdir /htop
[root@localhost /htop] # tar -zxvf htop-0.8.3.tar.gz
[root@localhost htop-0.8.3]# ./configure
[root@localhost htop-0.8.3]# make
[root@localhost htop-0.8.3]# make install

鼠标点击HELP显示自带帮助:
常用的命令:
/   : 搜索名,比如搜索ssh
t   : 显示树形结构
u : 显示某个用户的进程,在左侧选择用户
h : 显示帮助
H : 显示/隐藏用户线程
K : 显示/隐藏内核线程

Shortcut Key Function Key Description
h F1 Invoke htop Help
S F2 Htop Setup Menu
/ F3 Search for a Process
I F4 Invert Sort Order
t F5 Tree View
> F6 Sort by a column
[ F7 Nice - (change priority)
] F8 Nice  (change priority)
k F9 Kill a Process
q F10 Quit htop


Installing htop from source

Download the htop source from : http://sourceforge.net/projects/htop/
cd /usr/src/
wget http://downloads.sourceforge.net/project/htop/htop/0.8.3/htop-0.8.3.tar.gz?r=http://sourceforge.net/projects/htop/&ts=1283665168&use_mirror=cdnetworks-kr-2
tar zxvf htop-0.8.3.tar.gz
cd htop-0.8.3
./configure
If you are getting the following error message make sure that you have the ncurses-devel package installed (yum install ncurses-devel)
configure: error: missing headers:  curses.h
make all
make install
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics