#linux #disk #disk-usage #usage #console-application

app dua

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

1 stable release

Uses old Rust 2015

1.1.0 Feb 26, 2017

#1206 in Filesystem

Download history 9/week @ 2024-07-20 33/week @ 2024-07-27 8/week @ 2024-08-03 10/week @ 2024-08-10 20/week @ 2024-08-17 10/week @ 2024-08-24 17/week @ 2024-08-31 15/week @ 2024-09-07 7/week @ 2024-09-14 20/week @ 2024-09-21 22/week @ 2024-09-28 8/week @ 2024-10-05 18/week @ 2024-10-12 6/week @ 2024-10-19 9/week @ 2024-10-26 21/week @ 2024-11-02

55 downloads per month

Custom license

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