From d2b1fa42d73d8939909c7d5c38a18a6d46f67e9f Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 22 Nov 2017 17:21:17 -0500 Subject: [PATCH] Add ag to commands.md --- help/commands.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/help/commands.md b/help/commands.md index 5ea79680..f45b183b 100644 --- a/help/commands.md +++ b/help/commands.md @@ -50,7 +50,11 @@ Note that for all of the above, `cd` is not required. - Change the permissions of a directory to all users: `chmod -R a+rwX dir/` - 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` + +### Searching Through Files + - Search all files in a directory (and all subdirectories) for a given string: `grep -inr ` **OR** `g ` +- Search all files in a directory (including subdirectories) for a given string and ignore dotfiles: `ag ` ### System Commands