Linuxメモ : Rust製のdustでディスク使用量を直感的に表示
dust
Rust製のdustはディスク使用量を直感的に表示するコマンドラインツール。
du + rust = dustとのこと。
インストール
README.mdのインストール方法によるとcargoでインストールするか、バイナリをダウンロードすればよい。
$ cargo install du-dust
ヘルプメッセージ。
$ dust --help
Dust 0.5.1
Like du but more intuitive
USAGE:
dust [FLAGS] [OPTIONS] [--] [inputs]...
FLAGS:
-s, --apparent-size Use file length instead of blocks
-p, --full-paths Subdirectories will not have their path shortened
-h, --help Prints help information
-x, --limit-filesystem Only count the files and directories on the same filesystem as the supplied directory
-b, --no-percent-bars No percent bars or percentages will be displayed
-c, --no-colors No colors will be printed (normally largest directories are colored)
-r, --reverse Print tree upside down (biggest highest)
-V, --version Prints version information
OPTIONS:
-d, --depth <depth> Depth to show
-X, --ignore-directory <ignore_directory>... Exclude any file or directory with this name
-n, --number-of-lines <number_of_lines> Number of lines of output to show [default: 50]
-t, --threads <threads> Number of threads to spawn simultaneously
ARGS:
<inputs>...
使い方
dustコマンドを実行すればよい。

逆順-r、色なし-c、表示行数指定-nなどのオプションがある。

類似コマンド、ツール
README.mdでAlternativesとして紹介されてたもの。


- du -d 1 -h | sort -h
