erdtree

Multi-threaded filesystem and disk usage utility with gitignore awareness, multiple layouts, and file search capabilities

install

erdtree is a cross-platform filesystem and disk usage analyzer that combines functionality from du, tree, find, wc, and ls into a single multi-threaded tool. It traverses directories while respecting .gitignore files and hidden file rules by default, providing disk usage analysis using various metrics including bytes (logical or physical), blocks, word count, or line count.

The tool offers multiple output layouts including regular tree view, inverted tree, and flat du-like output. It supports Unix-style long view with file permissions, ownership, and timestamps, plus regular expression and glob-based file searching with filtering by file type. Additional features include granular sorting options, icon display, LS_COLORS colorization, and configurable parallelism with up to 10 threads by default.

erdtree targets developers and system administrators who need comprehensive filesystem analysis with modern features like gitignore integration and flexible output formats. The tool provides TOML-based configuration files for custom defaults and supports shell completions for bash, fish, zsh, and other shells.

Installation

# via Homebrew
brew install erdtree
# via Cargo
cargo install erdtree
# via Scoop
scoop install erdtree

erdtree output showing filesystem tree with disk usage

Alternatives & related tools

add a badge to your README

Maintain erdtree? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/erdtree.svg)](https://www.trmn.sh/tools/erdtree?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/erdtree?utm_source=badge"><img src="https://www.trmn.sh/badge/erdtree.svg" alt="Featured on trmn" height="20"></a>