AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents