1
0
Fork 0
mirror of https://github.com/Erreur32/cheat.git synced 2025-01-13 00:02:02 +01:00
cheat-fork-echo/cheat/cheatsheets/tree

11 lines
273 B
Text

# 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