From 7a28e9ce1546052f092875a714e46009509a56b4 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 14 Dec 2017 23:43:13 -0500 Subject: [PATCH] Add extension search and delete to commands.md --- help/commands.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/help/commands.md b/help/commands.md index 451323c..ccd40e2 100644 --- a/help/commands.md +++ b/help/commands.md @@ -49,6 +49,9 @@ Note that for all of the above, `cd` is not required. - Give permissions to the user `hello` and the group `world`: `chown -R hello:world dir/` - Given text input, return only unique lines (aka no duplicates): `cat | uniq` - Search for a particular font on the system: `fc-list | grep -i ` +- Search for all files of a specific extension in a given directory: `find . -name "*.ext" -type f` + - Chain `-delete` to the end of the find command in order to delete the results + - This is useful if, for example, you want to delete all files with the extension `ext` in all directories and subdirectories ### Changing File Permissions