Command-line tool
tree
brew/tree
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Display directories as trees (with optional color/HTML output)
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id GnuWin32.Tree -e
macOS
brew install tree
Linux
brew install tree
Print files and directories up to `num` levels of depth (where 1 means the current directory)
tree -L num
Print directories only
tree -d
Print hidden files too with colorization on
tree -a -C
Related command-line tools
- tree-rs
tree-rs is a cross platform reimplementation of the linux tree command. It supports colored output and specifying the… - gource
Version Control Visualization Tool git visualization versioncontrol - broot
New way to see and navigate directory trees rust cli command-line - pstree
Show ps output as a tree - vgrep
User-friendly pager for grep - witr
Why is this running? - indexifier
Generate an index from a directory index generate index.html dirtree tree cli filetree directory-tree directory-index - mcat
Terminal image, video, directory, and Markdown viewer
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents