List contents of directories in a tree-like format.

Synopsis

tree [OPTION]... [DIRECTORY]...

Description

Recursively lists the contents of DIRECTORY (default: current directory) as an indented tree.

Options

-a Include hidden files.

-d List directories only.

-L LEVEL Limit depth of directory tree.

-f Print full path prefix for each file.

--help Display help and exit.

Examples

$ tree

Show the tree for the current directory.

$ tree -L 2 /workspace

Show two levels of depth under /workspace.

$ tree -d

Show directories only.

Notes

Operates on the SLICC virtual filesystem.

See Also

ls, find, du