Useful Linux commands

From Chuckipedia
Revision as of 14:54, 2 October 2018 by Admin (talk | contribs) (Created page with "== grep == <code> grep -nr 'yourString*' . </code> The dot at the end searches the current directory. Meaning for each parameter: <pre> -n Show relative line num...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

grep

grep -nr 'yourString*' .

The dot at the end searches the current directory. Meaning for each parameter:

-n            Show relative line number in the file
'yourString*' String for search, followed by a wildcard character
-r            Recursively search subdirectories listed
.             Directory for search (current directory)