Tree for Unix/Linux: display a tree view of directories
open sourceGPL-2.0-or-laterself-hostablefree
tree is the classic command-line utility that lists the contents of directories as an indented tree, with colour support. Its options limit the depth, filter files by pattern, show sizes, permissions and dates, follow or flag symbolic links and leave out the summary report, and it can write the tree as HTML, XML or JSON for other tools. It's written in C by Steve Baker, built on Linux and portable to other Unix systems, and licensed under the GNU GPL v2 or later. The main distribution is on its author's site, with backup Git repositories on GitLab and GitHub.
Problems it solves
- show the folder structure of a project in the terminal so I can paste it into docs
- see what's inside a directory and all its subdirectories at a glance
- print a directory listing as JSON for a script to read
- list only the first two levels of a deep folder hierarchy
- find which folders in a tree are taking up space
Features
- indented tree view of directories
- colourized output
- depth limits and file pattern filters
- sizes, permissions and dates
- HTML, XML and JSON output
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what tree does.