2014-04-14 18:56:07 +01:00
|
|
|
# tree
|
|
|
|
|
|
|
|
> Show the contents of the current directory as a tree.
|
|
|
|
|
2016-07-19 12:39:18 +01:00
|
|
|
- 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}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Show directories only:
|
2014-04-14 18:56:07 +01:00
|
|
|
|
|
|
|
`tree -d`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Show hidden files too:
|
2014-04-14 18:56:07 +01:00
|
|
|
|
|
|
|
`tree -a`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print human readable size of files:
|
2014-04-14 18:56:07 +01:00
|
|
|
|
|
|
|
`tree -h`
|
2015-12-29 04:13:19 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print the full path for each file:
|
2015-12-29 04:13:19 +00:00
|
|
|
|
|
|
|
`tree -f`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Print the tree without lines and indentation. Useful when used with -f:
|
2015-12-29 04:13:19 +00:00
|
|
|
|
|
|
|
`tree -i`
|