# tree

> Tree for Unix/Linux: display a tree view of directories

Source: https://talira.ai/catalog/tree-cnxqhwhc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / cli / file viewing](https://talira.ai/categories/developer-tools/cli/file-viewing)
- Platforms: linux[^3]
- Licence: GPL-2.0-or-later[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^3]
- Creator: Steve Baker

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.

## Links

- Website: https://oldmanprogrammer.net/source.php?dir=projects/tree
- GitLab: https://gitlab.com/OldManProgrammer/unix-tree

## 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

## Trust

Overall: 0.28 out of 1.
Signals: backing 0.20, extensibility 0.20.

- created by Steve Baker

Warnings:

- GitLab activity not fetched yet

## Alternatives

- [eza](https://talira.ai/catalog/eza-116b46pv.md): A modern alternative to ls
- [lsd](https://talira.ai/catalog/lsd-pdv77kez.md): A rewrite of GNU ls with colours, icons, a tree view and git status.
- [broot](https://talira.ai/catalog/broot-961hkhkc.md): Navigate directory trees, find files and run commands in the terminal

## Sources

[^1]: https://gitlab.com/OldManProgrammer/unix-tree/-/blob/master/LICENSE (checked 23 Nov 2026)
[^2]: https://gitlab.com/OldManProgrammer/unix-tree/-/blob/master/tree.c (checked 23 Nov 2026)
[^3]: https://gitlab.com/OldManProgrammer/unix-tree/-/blob/master/INSTALL (checked 23 Nov 2026)
