Linux

tree

SafeDirectory tree view

tree -L 2

Shows the hierarchy as a tree. -L limits depth, -a includes hidden files. Great for documentation.

Examples

  • tree -L 2 -d /etcDirs only, 2 levels

Syntax

tree [-L depth] [-a] [path]

Before you run it

Read only.

Related commands

  • lsList directory
  • findFind files
  • duDirectory size

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store