split tree.md into linux and osx versions, to cater to the different sets of available options
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
# tree
|
||||
|
||||
> Show the contents of the current directory as a tree.
|
||||
|
||||
- Show files and directories up to 'num' levels of depth (where 1 means the current directory):
|
||||
|
||||
`tree -L {{num}}`
|
||||
|
||||
- Show directories only:
|
||||
|
||||
`tree -d`
|
||||
|
||||
- Show hidden files too:
|
||||
|
||||
`tree -a`
|
||||
|
||||
- Print the tree without indentation lines, showing the full path instead:
|
||||
|
||||
`tree -i -f`
|
||||
|
||||
- Print the size of each node next to it, in human-readable format, with folders displaying their cumulative size (as in the `du` command):
|
||||
|
||||
`tree -s -h --du`
|
||||
|
||||
- Filter the tree using a wildcard (glob) pattern, showing only the hierarchies leading to the matching entries:
|
||||
|
||||
`tree -P {{*.txt}} --prune`
|
Reference in New Issue
Block a user