liuerfire's Blog

Linux, Python, Vim, OnePiece...

Gnome 3中添加开机启动程序
升级firefox后,chmsee无法打开解决办法

比Top更好用的Htop

liuerfire posted @ 2011年11月19日 17:15 in Linux with tags htop top , 2040 阅读

Linux下的监测系统程序运行的软件有很多,像system moniter,top等。对于CLI控来说,系统自带的top命令就是一个很不错的系统监测程序。我也一直用top命令查看系统进程,不过偶然发现的htop却让我眼前一亮。htop相当于top的增强版本,如图:

在很多方面,htop比top显示的更加人性化,也可以按F1查看更多命令选项。如图:

需要注意的是,htop的F1命令可能和某些终端,比如gnome-terminal,konsole等的帮助相冲突,这样的话就更改改终端的快捷键或者使用xterm,urxvt等轻量级的终端。

下面是htop官方网站给出的htop与top的一些比较:

  • 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.
  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter