TL;DR — Quick Summary

erdtree (erd) combines tree and du into one beautiful command. File tree visualization with disk usage, icons, Git integration, and .gitignore support.

erdtree is tree + du in one command. See your file tree with sizes, icons, and Git status — beautiful and informative.

Installation

# macOS
brew install erdtree

# Arch Linux
sudo pacman -S erdtree

# Cargo
cargo install erdtree

Usage

# Basic tree with disk usage
erd

# Limit depth
erd -L 2
erd -L 3

# Show icons (requires Nerd Font)
erd --icons

# Sort by size (largest first)
erd -s size

# Sort by name
erd -s name

# Filter by pattern
erd -p '*.rs'
erd -p '*.md'

# Show hidden files
erd -H

# Ignore .gitignore
erd --no-ignore

# Specific directory
erd /path/to/dir

# Disk usage only (no tree lines)
erd --layout flat

# Inverted tree (files at top)
erd --inverted

# Human-readable sizes
erd --human    # default
erd --bytes    # exact bytes

Summary

  • erdtree combines tree + du: file tree visualization with disk usage
  • Nerd Font icons, Git status integration, .gitignore support
  • Sort by size, name, or date — filter by regex pattern
  • Flat layout, inverted tree, human-readable sizes
  • Written in Rust — fast, cross-platform, respects .gitignore