cheat-fork-echo/cheat/cheatsheets/tree

12 lines
273 B
Text
Raw Permalink Normal View History

# To display a recursive directory tree
tree
# To make tree output contents from path `/foo/bar`
tree /foo/bar
# To make tree omit any empty directories from the output
tree --prune
# To list directories only (`-d`), and at a max depth of two levels (`-L`)
tree -d -L 2