Htop安装使用

Htop是个好东西

htop安装
htop官网源码下载
http://sourceforge.net/projects/htop/
http://blog.chinaunix.net/attachment/attach/51/07/43/4351074313b2f6b27f0272261006d2e8ae8466fb.zip
# mkdir /htop
# tar -zxvf htop-0.8.3.tar.gz
# ./configure
# make
# 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值