tree

Linux · Directories · available in the simulator

What it does

Displays directory contents in a tree-like format.

Syntax

tree [opciones] [directorio]

Options and parameters

  • -d

    Displays directories only.

    tree -d
  • -a

    Includes hidden files.

  • -L

    Limits the depth of displayed directory levels.

    tree -L 2
  • -f

    Displays the full path for each item.

Usage examples

  • tree -d
  • tree -L 2

Notes and common mistakes

  • Not installed by default on all distributions.
Practise tree

Related commands