引言
一般大家查看進程相關信息常用的命令是 top,之前接觸並使用 htop,覺得比較好用,它算是 top 的增強版,這里重新記錄下。
htop 簡介
NAME htop - interactive process viewer SYNOPSIS htop [-dChusv] DESCRIPTION Htop is a free (GPL) ncurses-based process viewer for Linux. It is similar to top, but allows you to scroll vertically and horizontally, so you can see all the processes running on the system, along with their full command lines. Tasks related to processes (killing, renicing) can be done without entering their PIDs.
htop,姑且稱之為 top 的增強版,相比 top 其有着很多自身的優勢。如下: * 兩者相比起來,top 比較繁瑣 * 默認支持圖形界面的鼠標操作 * 可以橫向或縱向滾動瀏覽進程列表,以便看到所有的進程和完整的命令行 * 殺進程時不需要輸入進程號等