tree¶
List contents of directories in a tree-like format.
Synopsis¶
Description¶
Display the directory structure in a visual tree format. Shows files and subdirectories with their hierarchical relationships.
Flags¶
| Flag | Short | Description | Default |
|---|---|---|---|
--depth |
-L |
Descend only N levels deep (-1 for unlimited) | -1 |
--all |
-a |
Show entries starting with . |
false |
--exclude |
Exclude files matching pattern |
Examples¶
Show tree of current directory:
Show tree of specific directory:
Limit depth to 2 levels:
Show hidden files:
Exclude certain patterns: