Cross-platform filesystem utility combining du, tree, find, wc, and ls with gitignore support and multiple output formats
erdtree (erd) is a multi-threaded filesystem and disk usage utility that combines functionality from du, tree, find, wc, and ls into a single tool. It reports disk usage using various metrics including bytes (logical or physical), blocks, word count, or line count, and provides multiple output layouts including tree-like, flat, and inverted views.
The tool respects .gitignore rules and hidden file patterns by default, making it suitable for analyzing codebases without traversing ignored directories. It supports regular expression and glob-based file searching with file-type filtering, granular sorting capabilities by name, size, or timestamps, and Unix-specific features like an ls -l view showing file permissions, owners, and groups.
erdtree offers configurable output through TOML configuration files supporting multiple named profiles, colorized output with LS_COLORS support, and cross-platform operation with Windows support (requiring nightly Rust toolchain for hard-link detection). The tool is designed for developers, system administrators, and users who need detailed filesystem analysis with flexible output formatting and filtering capabilities.
# via Homebrew
brew install erdtree
# via Cargo
cargo install erdtree
# via Scoop
scoop install erdtree
