LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dutree

colorful disk usage tree visualizer

TLDR

Show graphical tree of current directory
$ dutree
copy
Show specific directory
$ dutree [path/to/directory]
copy
Aggregate items smaller than a threshold
$ dutree -a [10]M
copy
Show subdirectories up to specific depth
$ dutree -d [2]
copy
Skip directories for fast overview
$ dutree -f
copy
Exclude hidden files
$ dutree -H
copy
Exclude files matching a pattern
$ dutree -x "*.log"
copy
Summary of total size only
$ dutree -s
copy

SYNOPSIS

dutree [options] [path]

DESCRIPTION

dutree is a disk usage analyzer that presents filesystem information as a colorful, hierarchical tree structure. Unlike traditional du output, dutree provides an intuitive visual representation that makes it easy to identify space-consuming directories at a glance.The tool uses color coding and tree branches to show the relationship between directories and their contents, with file sizes displayed prominently. It can aggregate small items below a configurable threshold to keep the output readable and focused on the largest space consumers.Written in Rust for performance, dutree handles large directory trees efficiently. The depth can be limited with -d to prevent overwhelming output. The tool is particularly useful for quick space audits and identifying directories suitable for cleanup.

PARAMETERS

-a, --aggr size

Aggregate items smaller than size (e.g., 1K, 10M, 1G).
-d, --depth n
Maximum directory depth to display.
-f, --files-only
Skip directories, show only files.
-H, --no-hidden
Exclude hidden files and directories.
-x, --exclude pattern
Exclude files matching glob pattern.
-s, --summary
Show only total size.
-b, --bytes
Print raw byte sizes instead of human-readable format.

INSTALL

brew install dutree
copy
nix profile install nixpkgs#dutree
copy

CAVEATS

Requires terminal with color support for best visualization. Large directories may take time to scan.

SEE ALSO

du(1), dust(1), ncdu(1), tree(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid