erdtree
Multi-threaded filesystem and disk usage utility with gitignore awareness, multiple layouts, and file search capabilities
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

Alternatives & related tools
fclones
Command-line duplicate file finder and remover with parallel processing and multiple deduplication strategies.
diskonaut
Interactive disk usage analyzer with treemap visualization for exploring and cleaning up disk space
viu
Rust command-line image viewer for the terminal using the iTerm or Kitty graphics protocols, with a half-block fallback and animated GIF support.
xleak
Excel file viewer and interactive TUI for terminal with multi-sheet support and export capabilities
doxx
Terminal-native .docx document viewer with formatting, search, and export capabilities
add a badge to your README
Maintain erdtree? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/erdtree?utm_source=badge)<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>