durt

Crates.iodurt
lib.rsdurt
version1.0.3
sourcesrc
created_at2018-07-06 02:37:13.493593
updated_at2021-11-09 20:44:51.664511
descriptionCommand line tool for calculating the size of files and directories
homepage
repositoryhttps://github.com/cauebs/durt
max_upload_size
id73069
size99,906
CauĂȘ Baasch de Souza (cauebs)

documentation

README

durt

durt

Command line tool for calculating the size of files and directories

Installation

~ $ cargo install durt

Usage

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

At this time --same-fs is not available on Windows.

Example

~/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
Commit count: 67

cargo fmt