Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cauebs/durt
Command line tool for calculating the size of files and directories
https://github.com/cauebs/durt
cli hacktoberfest rust tool
Last synced: 3 months ago
JSON representation
Command line tool for calculating the size of files and directories
- Host: GitHub
- URL: https://github.com/cauebs/durt
- Owner: cauebs
- License: gpl-3.0
- Created: 2018-06-25T05:41:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-06T00:52:15.000Z (about 3 years ago)
- Last Synced: 2024-10-07T11:13:23.130Z (4 months ago)
- Topics: cli, hacktoberfest, rust, tool
- Language: Rust
- Homepage:
- Size: 102 KB
- Stars: 39
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# durt
Command line tool for calculating the size of files and directories## Installation
```
~ $ cargo install durt
```## Usage
```
USAGE:
durt [FLAGS] [OPTIONS] [paths]...ARGS:
... Paths to files or directories. Use wildcards for recursionFLAGS:
-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 informationOPTIONS:
-m, --min 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
```