What command can you use to quickly find which file on your home folder containing the umask command?
$ grep -rnw "umask" ~
What command can you use to quickly find which file on your home folder containing the umask command?
$ grep -rnw "umask" ~
The pattern in
grep
is placed in front of the file/path:To receive just the matching filenames instead of the matches, you should use
-l
option:If you want all matches of all files including their line number, you need to use
-n
instead of-l
: