Skip to content

tree Command Cheat Sheet

tree displays directories and files in a tree-like format.


Basic Usage

tree

Limit Depth

tree -L 2

Show Hidden Files

tree -a

Output to File

tree -o tree.txt