1 stable release
Uses old Rust 2015
1.1.0 | Feb 26, 2017 |
---|
#1206 in Filesystem
55 downloads per month
12KB
250 lines
Disk Usage Analyzer
Disk Usage Analyzer (DUA) is a linux console application to display what uses the most space in the specified directories. Think about it as a console version of KDirStat or WinDirStat
Usage
USAGE:
dua [FLAGS] [OPTIONS] [DIR]
FLAGS:
--help Prints help information
-h Output sizes in human readable form
-k Output sizes in KiBytes
-V, --version Prints version information
-x no crossing of filesystems
OPTIONS:
-d <depth> depth to display
-n <num> number of entries to display on each level
ARGS:
<DIR> Directory to analyze
ARGUMENTS
- -h : Display sizes in human readable form
- -k : Display sizes in KiBytes
- -x : Do not descend into different (mounted) filesystems
- -n : Number of entries to display in each directory, default=1
- -d : How deep to display the directory structure
Examples
$ dua -h .
100.0% 34.5M ./
99.7% 34.4M target/
74.1% 25.5M debug/
69.3% 17.7M deps/
82.8% 14.6M libclap-c293040e3ef9c3f9.rlib
$ dua -d 3 -n 2
100.0% 72254726 ./
99.8% 72124752 target/
50.0% 36063423 x86_64-unknown-linux-gnu/
37.1% 26722394 debug/
0.1% 54055 .git/
56.8% 30692 objects/
28.3% 15321 hooks/
How to build
Run build.sh. It requires the Rust toolchain, including cargo, and fpm (eFfing Package Manager). It builds Debian and Arch linux packages.
Author
Pistahh - István Szekeres szekeres@iii.hu
Dependencies
~1.5MB
~24K SLoC