💾 Archived View for freeshell.de › tldr › tree.gmi captured on 2023-11-04 at 12:55:34. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
tree
Show the contents of the current directory as a tree.
More information.
- Print files and directories up to 'num' levels of depth (where 1 means the current directory):
tree -L {num}
tree -d
- Print hidden files too with colorization on:
tree -a -C
- Print the tree without indentation lines, showing the full path instead (use `-N` to not escape non-printable characters):
tree -i -f
- Print the size of each file and the cumulative size of each directory, in human-readable format:
tree -s -h --du
- Print files within the tree hierarchy, using a wildcard (glob) pattern, and pruning out directories that don't contain matching files:
tree -P '{*.txt}' --prune
- Print directories within the tree hierarchy, using the wildcard (glob) pattern, and pruning out directories that aren't ancestors of the wanted one:
tree -P {directory_name} --matchdirs --prune
- Print the tree ignoring the given directories:
tree -I '{directory_name1|directory_name2}'
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY