macOS
brew install treelocal Homebrew formula metadata
sudo port install treeMacPorts ports tree · sysutils/tree/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de tree pour les workflows d'agents IA.
installation
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
aperçu
Display directories as trees (with optional color/HTML output)
historique
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.
posture de sécurité
doc example: narrow filesystem listing tool.
risque vert · confiance élevé · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
tree | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/Old-Man-Programmer/tree
métadonnées d'installation
| Clé du paquet | brew:tree |
|---|---|
| Version | 2.3.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/tree |
| Page d'accueil | https://oldmanprogrammer.net/source.php?dir=projects/tree |
| Dépôt | https://github.com/Old-Man-Programmer/tree |
| Docs amont | https://github.com/Old-Man-Programmer/tree#readme |
| Licence | GPL-2.0-or-later |
| Archive source | https://github.com/Old-Man-Programmer/tree/archive/refs/tags/2.3.2.tar.gz |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 treepiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.