tree Command Examples

Show the contents of the current directory as a tree. More information: https://manned.org/tree.

tree -L {{num}}

tree -d

tree -a -C

tree -i -f

tree -s -h --du

tree -P '{{*.txt}}' --prune

tree -P {{directory_name}} --matchdirs --prune

tree -I '{{directory_name1|directory_name2}}'