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:
grep [OPTIONS] PATTERN [FILE...]
To receive just the matching filenames instead of the matches, you should use -l
option:
grep -rlw "umask" ~
If you want all matches of all files including their line number, you need to use -n
instead of -l
:
grep -rnw "umask" ~
umask
? By default it'd beumask 022
, resulting in file permissions 755. – M. Becerra May 24 '18 at 09:05