Ubuntu 21.10にdufコマンドをインストールする
説明
dufコマンドで、ディスク使用量・空き容量を分かりやすくCUIでグラフ表示します。
OSバージョンの確認
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=21.10 DISTRIB_CODENAME=impish DISTRIB_DESCRIPTION="Ubuntu 21.10"
インストールの方法
1.dufのダウンロード
# wget https://github.com/muesli/duf/releases/download/v0.6.2/duf_0.6.2_linux_amd64.deb
2.dufのインストール
# sudo dpkg -i ./duf_0.6.2_linux_amd64.deb
3.dufコマンドの実行
# duf +-------------------------------------------------------------------+ | 2 local devices | +------------+--------+-------+--------+--------+------+------------+ | MOUNTED ON | SIZE | USED | AVAIL | USE% | TYPE | FILESYSTEM | +------------+--------+-------+--------+--------+------+------------+ | / | 38.6G | 15.6G | 21.0G | 40.5% | ext4 | /dev/sda3 | | /boot/efi | 512.0M | 5.2M | 506.7M | 1.0% | vfat | /dev/sda2 | +------------+--------+-------+--------+--------+------+------------+ +------------------------------------------------------------------------+ | 6 special devices | +--------------+--------+--------+--------+--------+--------+------------+ | MOUNTED ON | SIZE | USED | AVAIL | USE% | TYPE | FILESYSTEM | +--------------+--------+--------+--------+--------+--------+------------+ | /dev | 947.8M | 0B | 947.8M | | devtmp | udev | | | | | | | fs | | | /dev/shm | 972.5M | 0B | 972.5M | | tmpfs | tmpfs | | /run | 194.5M | 1.7M | 192.9M | 0.9% | tmpfs | tmpfs | | /run/lock | 5.0M | 4.0K | 5.0M | 0.1% | tmpfs | tmpfs | | /run/snapd/n | 194.5M | 1.7M | 192.9M | 0.9% | tmpfs | tmpfs | | s | | | | | | | | /run/user/10 | 194.5M | 108.0K | 194.4M | 0.1% | tmpfs | tmpfs | | 00 | | | | | | | +--------------+--------+--------+--------+--------+--------+------------+