Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shekhei/disk-usage-again
disk usage rewrite
https://github.com/shekhei/disk-usage-again
cli disk-usage rust-lang
Last synced: 2 months ago
JSON representation
disk usage rewrite
- Host: GitHub
- URL: https://github.com/shekhei/disk-usage-again
- Owner: shekhei
- License: mit
- Created: 2019-01-08T23:49:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T18:33:15.000Z (over 2 years ago)
- Last Synced: 2024-04-09T16:22:44.545Z (10 months ago)
- Topics: cli, disk-usage, rust-lang
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# disk usage again(dua)
dua is a rewrite of the gnu version of `du`. It aims to be at least compatible with gnu du. It aims to be fast.
dua also happens to be “two” in bahasa I believe, making it disk usage 2 :P
## Current state
```
USAGE:
dua [FLAGS] [OPTIONS] ...FLAGS:
-a, --all display an entry for each file in the file hierachy
--apparent-size print apparent sizes, rather than disk usage; although the
apparent size is usually smaller, it may be larger due to holes
in (`sparse') files, internal fragmentation, indirect blocks,
and the like
-0, --null end each output line with NUL, not newline
-L Symbolic links on the command line and in file hierarchies are
followed.
-g like --block-size=1G
-c display a grand total
--help Prints help information
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
-k like --block-size=1K
-m like --block-size=1M
-s, --summarize display only a total for each argument
-V, --version Prints version informationOPTIONS:
-B, --block-size use SIZE-byte blocks
-d depthARGS:
... paths
```Does not support windows currently
# Usage
```
dua --help
```# Design
It uses rayon to split work up per directory and
# Performance
Depending on the depth and width of the directories, it can be up to 10 times faster currently on a 2010 mbp.