macOS
brew install treelocal Homebrew formula metadata
sudo port install treeMacPorts ports tree · sysutils/tree/Portfile · source: api.github.com
brew
Display directories as trees (with optional color/HTML output). Version 2.3.2 via Homebrew; verified from local package data.
install
brew install treelocal Homebrew formula metadata
sudo port install treeMacPorts ports tree · sysutils/tree/Portfile · source: api.github.com
sudo apk add treeAlpine Linux edge package indexes · tree · source: dl-cdn.alpinelinux.org
sudo apt install treeDebian stable package indexes · tree · source: deb.debian.org
sudo dnf install treeFedora Rawhide package metadata · tree · source: dl.fedoraproject.org
nix profile install nixpkgs#treenixpkgs package indexes · pkgs/by-name/tr/tree/package.nix · source: api.github.com
sudo pacman -S treeArch Linux sync databases · tree · source: geo.mirror.pkgbuild.com
sudo zypper install treeopenSUSE Tumbleweed package metadata · tree · source: download.opensuse.org
choco install treeChocolatey community package catalog · tree · source: community.chocolatey.org
overview
Display directories as trees (with optional color/HTML output)
history
tree is the classic Unix-style command that prints directory contents as an indented tree, with options for color, filtering, metadata, and machine-readable output.
Steve Baker's README describes tree as a handy utility he had written earlier to display a directory tree and later released after adding color support. The man page identifies the program as copyright 1996-2026 and describes it as listing directory contents in a tree-like format.
The command grew by accretion in the Unix tradition. Early releases added filtering, modification-time sorting, ownership display, dircolors support, ANSI line drawing, HTML output, output redirection, depth limits, recursive HTML generation, portability fixes, and symlink handling.
Later releases made tree more useful for scripts and modern repositories: XML output, JSON output, UTF-8 handling, file-size sorting, gitignore support, NO_COLOR support, hyperlink output, from-file modes, ACL/SELinux display, and extensive portability fixes across Linux, macOS, Solaris, Cygwin, OS/2, HP NonStop, and other systems.
tree became one of those small commands many users expect even though it is not part of every base system. Its broad package-manager presence reflects that: Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, Chocolatey, and others package a compatible `tree` executable.
Its adoption is driven less by a framework ecosystem than by muscle memory: README examples, dotfile screenshots, CI diagnostics, support tickets, and filesystem explanations often become easier once a directory hierarchy can be pasted as text.
Common use is simply `tree` or `tree DIR`, with options such as `-L` for depth, `-a` for hidden files, `-d` for directories only, `-I` or `-P` for filtering, `-J` for JSON, `-X` for XML, and `-H` for HTML.
In package-nerd culture, tree is both a diagnostic tool and a packaging sanity check: after install, after build, or inside a fixture, it gives a compact visual proof of what files landed where.
tree is significant because it turns filesystem shape into a stable text artifact. That makes it unusually useful in package recipes, bug reports, documentation, and tests where `find` is correct but hard to read.
security posture
doc example: narrow filesystem listing tool.
green risk · high confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tree | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Old-Man-Programmer/tree
install metadata
| Package key | brew:tree |
|---|---|
| Version | 2.3.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tree |
| Homepage | https://oldmanprogrammer.net/source.php?dir=projects/tree |
| Repository | https://github.com/Old-Man-Programmer/tree |
| Upstream docs | https://github.com/Old-Man-Programmer/tree#readme |
| License | GPL-2.0-or-later |
| Source archive | https://github.com/Old-Man-Programmer/tree/archive/refs/tags/2.3.2.tar.gz |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tree |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tree 2.2.1-1
displays an indented directory tree, in color
http://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apt install treetree
nix profile install nixpkgs#treetree 2.1.1-2ubuntu3
displays an indented directory tree, in color
http://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apt install treetree 2.3.2-r0
Recursive directory indented listing of files
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apk add treetree-doc 2.3.2-r0
Recursive directory indented listing of files (documentation)
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo apk add tree-doctree 2.3.1-1.fc45
File system tree viewer
https://oldmanprogrammer.net/source.php?dir=projects/tree
sudo dnf install treetree 2.3.2-1
A directory listing program displaying a depth indented list of files
https://gitlab.com/OldManProgrammer/unix-tree
sudo pacman -S treetree 2.3.2-1.1
File listing as a tree
https://oldmanprogrammer.net/tar/tree/
sudo zypper install treetree
sudo port install treetree
choco install treesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.