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

#2384 in Command line utilities

Download history 50/week @ 2024-07-20 116/week @ 2024-07-27 70/week @ 2024-08-03 48/week @ 2024-08-10 43/week @ 2024-08-17 45/week @ 2024-08-24 45/week @ 2024-08-31 52/week @ 2024-09-07 46/week @ 2024-09-14 110/week @ 2024-09-21 62/week @ 2024-09-28 68/week @ 2024-10-05 68/week @ 2024-10-12 63/week @ 2024-10-19 75/week @ 2024-10-26 62/week @ 2024-11-02

275 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

~4–5.5MB
~82K SLoC