From 85dcf3eef6259acc53ec80e025976267b3a8ae74 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 3 Aug 2016 12:05:22 +0100 Subject: [PATCH] tree.md: add more useful examples and reorder entries by increasing complexity --- pages/common/tree.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/tree.md b/pages/common/tree.md index 515b26032..b03a9e0c5 100644 --- a/pages/common/tree.md +++ b/pages/common/tree.md @@ -14,14 +14,14 @@ `tree -a` -- Print human readable size of files: +- Print the tree without indentation lines, showing the full path instead: -`tree -h` +`tree -i -f` -- Print the full path for each file: +- 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 -f` +`tree -s -h --du` -- Print the tree without lines and indentation. Useful when used with -f: +- Filter the tree using a wildcard (glob) pattern, showing only the hierarchies leading to the matching entries: -`tree -i` +`tree -P {{*.txt}} --prune`