CentOS8 に top の上位版「htop」をインストールする

top コマンドの上位バージョンにあたるような htop というコマンドがそうなので CentOS8 で試してみました。

epel 上にある為、もし epel リポジトリが追加されていない場合はインストールしておきます。

# dnf info htop
Last metadata expiration check: 0:47:50 ago on Tue Dec 24 14:40:29 2019.
Available Packages
Name         : htop
Version      : 2.2.0
Release      : 6.el8
Arch         : x86_64
Size         : 112 k
Source       : htop-2.2.0-6.el8.src.rpm
Repo         : epel
Summary      : Interactive process viewer
URL          : http://hisham.hm/htop/
License      : GPLv2+
Description  : htop is an interactive text-mode process viewer for Linux, similar to
             : top(1).

インストールします。

dnf -y install htop

オプション無しで起動した場合は top ほぼ top と同じ画面になりました。

file

ヘルプ表示は以下の通りです。

# htop --help
htop 2.2.0 - (C) 2004-2019 Hisham Muhammad
Released under the GNU GPL.

-C --no-color               Use a monochrome color scheme
-d --delay=DELAY            Set the delay between updates, in tenths of seconds
-h --help                   Print this help screen
-s --sort-key=COLUMN        Sort by COLUMN (try --sort-key=help for a list)
-t --tree                   Show the tree view by default
-u --user=USERNAME          Show only processes of a given user
-p --pid=PID,[,PID,PID...]  Show only the given PIDs
-v --version                Print version info

Long options may be passed with a single dash.

Press F1 inside htop for online help.
See 'man htop' for more information.

参考

コメント

タイトルとURLをコピーしました