Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

tree

Display directory structure as tree

Syntax

tree [OPTION]... [DIRECTORY]

Common Options

-aShow all files
-dDirectories only
-LLimit depth level
-fShow full path

Common Examples

tree

Show directory tree

tree -L 2

Show 2 levels deep

tree -d

Directories only

Related Commands

Related Tools

More Code & Dev Tools