安装很简单:
tar xvzf htop-0.9.tar.gz ./configure --prefix=/usr/local/htop make make install
现在你可以执行/usr/local/htop/bin/htop打开htop了。
也许你用惯了top,我们也可以用top来打开htop。
编辑/root/.bashrc文件:
if [ -f /usr/local/htop/bin/htop ]; then alias top='/usr/local/htop/bin/htop' fi
执行:
source /root/.bashrc
现在,执行top便打开了htop。
htop界面如图所示: