tree Directory tree listing
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
treetree <dir>
tree -L 2tree -atree -dtree -I '<pattern>'
tree -htree --gitignore
Concepts
- Walk -L, -a, -x, -l
- Filter -P, -I, --prune
- Sort -t, -r, --dirsfirst
- Print -h, -p, -D, -J, -H
Listing
treetree <dir> ...
tree -L <n>
tree -atree -dtree -ftree -ltree -xtree --noreporttree --filelimit <n>
tree --condensetree -itree -Ftree -QFiltering
tree -I '<glob>'
tree -I 'node_modules|dist'
tree -P '<glob>'
tree -P '*.py' --prune
tree --gitignore
tree --gitfile <file>
tree --matchdirs
tree --ignore-case
tree --pruneDetails
tree -htree -stree --dutree --sitree -ptree -u / -gtree -Dtree --timefmt '<fmt>'
tree -pughtree --inodestree --metafirst
Sorting
tree --dirsfirst
tree --filesfirst
tree -ttree -rtree -vtree --sort <key>
tree -UOutput
tree -Jtree -Xtree -H <baseHREF>
tree -H . -T '<title>' -o <file>
tree -o <file>
tree -ntree -Ctree -Atree --charset <name>
tree --hyperlink
tree --fromfile .
Recipes
tree -a -L 3 --gitignore -I '.git' --dirsfirst# -I '.git': --gitignore does not hide the .git dir itself
tree --du -h -L 2 --sort size -r# totals per directory, largest first
git ls-files | tree --fromfile .find . -name '*.md' | tree --fromfile .
tree -J -L 2 src > tree.jsontree -H . -T 'Docs' -o index.html docs/



