13 个版本 (2 个稳定版)
| 1.0.3 | 2021 年 11 月 9 日 | 
|---|---|
| 1.0.0 |  | 
| 0.7.0 | 2020 年 7 月 5 日 | 
| 0.6.0 | 2020 年 2 月 2 日 | 
| 0.5.0 | 2018 年 7 月 19 日 | 
#1084 在 文件系统 分类中
每月 35 次下载
55KB
195 代码行

durt
用于计算文件和目录大小的命令行工具
安装
~ $ cargo install durt
使用方法
USAGE:
    durt [FLAGS] [OPTIONS] [paths]...
ARGS:
    <paths>...    Paths to files or directories. Use wildcards for recursion
FLAGS:
    -b, --binary        Use binary prefixes (Ki, Mi, Gi, etc.) instead of decimal
    -P, --percentage    Show each entry's percentage relative to the total
    -t, --total         Print the sum of all sizes at the end
    -s, --sort          Print entries in ascending order of size
    -p, --by-path       Sort by path instead of by size
    -r, --reverse       Reverse the order of the entries
    -f, --same-fs       Ignore entries from filesystems different from that of the first path passed
    -h, --help          Prints help information
    -V, --version       Prints version information
OPTIONS:
    -m, --min <minimum-percentage>    Omit entries with size less than this
目前 --same-fs 在 Windows 上不可用。
示例
~/durt $ durt -st *
       534 B  Cargo.toml
     1.24 kB  README.md
    11.49 kB  Cargo.lock
    35.15 kB  LICENSE
    56.01 kB  src
   173.56 MB  target
   ---------
   173.66 MB
依赖项
~2–9.5MB
~71K SLoC