tldr/pages/common/tree.md

28 lines
433 B
Markdown
Raw Normal View History

2014-04-14 18:56:07 +01:00
# tree
> Show the contents of the current directory as a tree.
- Show files and directories with a depth of 'num' (where 1 means the current directory):
2014-04-14 18:56:07 +01:00
`tree -L {{num}}`
- Show directories only:
2014-04-14 18:56:07 +01:00
`tree -d`
- Show hidden files too:
2014-04-14 18:56:07 +01:00
`tree -a`
- Print human readable size of files:
2014-04-14 18:56:07 +01:00
`tree -h`
2015-12-29 04:13:19 +00:00
- Print the full path for each file:
2015-12-29 04:13:19 +00:00
`tree -f`
- Print the tree without lines and indentation. Useful when used with -f:
2015-12-29 04:13:19 +00:00
`tree -i`