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.
# via Homebrew
brew install erdtree
# via Cargo
cargo install erdtree
# via Scoop
scoop install erdtree
