From 8368507319048adb48b2ca6db9a4cf073f6aa74b Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 12 Nov 2016 00:20:38 +0000 Subject: [PATCH 1/2] add tree view tip --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index b327353..87e07db 100644 --- a/readme.md +++ b/readme.md @@ -30,6 +30,7 @@ As a computer expert, we want to be more efficient and do our jobs better. We kn 1. [remove a file](#removefile) 1. [remove a folder](#removefolder) 1. [list folder contents](#listfolder) +1. [tree view a folder and its subfolders](#treeview) 1. [find a stale file](#findfile) 1. [show a calendar](#showcal) @@ -182,7 +183,14 @@ rm -r my_useless_folder ``` ls -la my_folder ``` +## tree view a folder and its subfolders +**STOP OPENING YOUR FINDER OR FILE EXPLORER** + +``` +tree # on Linux +find . -print | sed -e 's; # on macOS +``` ## find a stale file **STOP USING YOUR FILE EXPLORER TO FIND A FILE** From 14e0772c30612234d51affbbf1ee501a506453fe Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 12 Nov 2016 00:31:15 +0000 Subject: [PATCH 2/2] add tree view tip --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 87e07db..52a5806 100644 --- a/readme.md +++ b/readme.md @@ -189,7 +189,7 @@ ls -la my_folder ``` tree # on Linux -find . -print | sed -e 's; # on macOS +find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' # on macOS ``` ## find a stale file