#command-line-tool

bin+lib dutree

Command line tool to analyze disk usage

15 releases

0.2.18 May 9, 2021
0.2.16 Jun 3, 2020
0.2.15 Nov 18, 2019
0.2.9 Jul 13, 2018

#702 in Command line utilities

Download history 46/week @ 2022-08-07 36/week @ 2022-08-14 78/week @ 2022-08-21 30/week @ 2022-08-28 58/week @ 2022-09-04 39/week @ 2022-09-11 31/week @ 2022-09-18 46/week @ 2022-09-25 51/week @ 2022-10-02 66/week @ 2022-10-09 55/week @ 2022-10-16 48/week @ 2022-10-23 58/week @ 2022-10-30 43/week @ 2022-11-06 56/week @ 2022-11-13 48/week @ 2022-11-20

213 downloads per month

GPL-3.0 license

640KB
507 lines

dutree

a tool to analyze file system usage written in Rust

Example

Features

  • coloured output, according to the LS_COLORS environment variable.
  • display the file system tree
  • ability to aggregate small files
  • ability to exclude files or directories
  • ability to compare different directories
  • fast, written in Rust

More details at ownyourbits.com.

Usage

 $ dutree --help
Usage: dutree [options] <path> [<path>..]

Options:
    -d, --depth [DEPTH] show directories up to depth N (def 1)
    -a, --aggr [N[KMG]] aggregate smaller than N B/KiB/MiB/GiB (def 1M)
    -s, --summary       equivalent to -da, or -d1 -a1M
    -u, --usage         report real disk usage instead of file size
    -b, --bytes         print sizes in bytes
    -f, --files-only    skip directories for a fast local overview
    -x, --exclude NAME  exclude matching files or directories
    -H, --no-hidden     exclude hidden files
    -A, --ascii         ASCII characters only, no colors
    -h, --help          show help
    -v, --version       print version number

Installation

cargo install dutree

There's also standalone binaries for Linux in the Releases section

Arch Linux

You can install the AUR package with an AUR helper like pacaur, or manually:

git clone https://aur.archlinux.org/dutree.git
cd dutree
makepkg -si

Fedora

You can install dutree from the official Fedora repositories:

$ sudo dnf -y install dutree

Dependencies

~2MB
~52K SLoC