使用状況と統計を表示するリソースモニター bashtopを使う

はじめに

リソースモニターを探していたらbashtopを見つけたので試してみる。

環境

Windows 11 Professional
WSL2 Ubuntu 24.04 LTS
bashtop

bashtopのインストール

sudo apt install bashtop
ログ
sudo apt install bashtop
[sudo] password for kbushi:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgl1-amber-dri libllvm19 libxcb-damage0 mesa-utils-bin xbitmaps
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  lm-sensors python3-psutil
Suggested packages:
  fancontrol read-edid i2c-tools
The following NEW packages will be installed:
  bashtop lm-sensors python3-psutil
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 341 kB of archives.
After this operation, 1808 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble/universe amd64 bashtop all 0.9.25-1 [55.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 python3-psutil amd64 5.9.8-2build2 [195 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/universe amd64 lm-sensors amd64 1:3.6.0-9build1 [90.1 kB]
Fetched 341 kB in 2s (178 kB/s)
Selecting previously unselected package bashtop.
(Reading database ... 89400 files and directories currently installed.)
Preparing to unpack .../bashtop_0.9.25-1_all.deb ...
Unpacking bashtop (0.9.25-1) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../python3-psutil_5.9.8-2build2_amd64.deb ...
Unpacking python3-psutil (5.9.8-2build2) ...
Selecting previously unselected package lm-sensors.
Preparing to unpack .../lm-sensors_1%3a3.6.0-9build1_amd64.deb ...
Unpacking lm-sensors (1:3.6.0-9build1) ...
Setting up python3-psutil (5.9.8-2build2) ...
Setting up bashtop (0.9.25-1) ...
Setting up lm-sensors (1:3.6.0-9build1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/lm-sensors.service → /usr/lib/systemd/system/lm-sensors.service.
Processing triggers for man-db (2.12.0-4build2) ...

bashtopを使ってみる

manコマンドで確認

まずは、manコマンドで確認してみる。

man bashtop
詳細
BASHTOP(1)                                     General Commands Manual                                     BASHTOP(1)

NAME
       BASHTOP - Resource monitor that shows usage and stats

SYNOPSIS
       bashtop

DESCRIPTION
       bashtop  is a resource monitor that shows usage and stats for processor, memory, disks, network and processes.
       bashtop includes:
        - Easy to use, with a game inspired menu system.
        - Fast and responsive UI with UP, DOWN keys process selection.
        - Function for showing detailed stats for selected process.
        - Ability to filter processes.
        - Easy switching between sorting options.
        - Send SIGTERM, SIGKILL, SIGINT to selected process.
        - UI menu for changing all config file options.
        - Auto scaling graph for network usage.

SEE ALSO
       https://github.com/aristocratos/bashtop

AUTHOR
       bashtop was written by Aristocratos.

0.8.4                                                 April 2020                                           BASHTOP(1)

どうやらオプションはないみたい。
とりあえず起動してみる。

bashtopを使う

bashtop
bashtop-00 bashtop-01

か、かっこいい・・・!

右下のパネルをやじるしで移動しながらプロセスを確認できる。
Enterを押すと、そのプロセスのCPU/メモリ使用率が確認できる。

見た目がかっこいいのでよし!

参考

おわりに

かっこいい。

Hugo で構築されています。
テーマ StackJimmy によって設計されています。