LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

erdtree

Modern filesystem tree utility with git integration

TLDR

Display directory tree
$ erdtree [directory]
copy
Show sizes of directories and files
$ erdtree -s [directory]
copy
Show git status alongside tree
$ erdtree --git [directory]
copy
Limit depth of tree
$ erdtree -L 3 [directory]
copy
Show only directories
$ erdtree -d [directory]
copy

SYNOPSIS

erdtree [options] [directory]

DESCRIPTION

erdtree is a modern tree command replacement with additional features like disk usage reporting, git integration, and improved visual formatting. It combines the functionality of tree and du with a clean, fast interface.The tool can display file sizes, git status indicators, and customizable sorting. It's designed to be faster than traditional tree implementations while providing more useful information.

PARAMETERS

-d, --dirs-only

Show only directories
-L, --level N
Limit tree depth to N levels
-s, --size
Show file and directory sizes
-h, --human-readable
Show sizes in human-readable format
--git
Show git status (modified, untracked, ignored)
--no-git
Disable git integration
--ignore PATTERN
Ignore files matching pattern
-I, --ignore-git
Respect .gitignore rules
-a, --all
Show hidden files
-P, --prune
Prune empty directories
--sort TYPE
Sort by: name, size, time, git
--dirs-first
Show directories before files
-o, --output FILE
Output to file instead of stdout
-v, --version
Display version and exit
--help
Display help and exit

INSTALL

sudo pacman -S erdtree
copy
sudo zypper install erdtree
copy
brew install erdtree
copy
nix profile install nixpkgs#erdtree
copy

CAVEATS

Large directories may take time to process. Git status checking adds overhead. Symbolic links are handled according to options. Unicode filenames require proper terminal support.

HISTORY

erdtree was created by Benji Nguyen as a modern replacement for the traditional tree command, addressing performance and feature limitations while maintaining compatibility.

SEE ALSO

tree(1), du(1), ls(1), exa(1), lsd(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid