Grep is an acronym that stands for Global Regular Expression Print. The grep command consists of three parts in its most basic form. The first part starts with grep, followed by the pattern that you are searching for. After the string comes the file name that the grep searches through.
grep access file.txt
Result:
u (user) + (add access) r (read)
g (group) - (remove access) w (write)
o (other) = (set exact access) x (execute)
grep access *
Result
file.txt: u (user) + (add access) r (read)
file.txt: g (group) - (remove access) w (write)
file.txt: o (other) = (set exact access) x (execute)
file2.txt:access is there in file2.txt
grep: folder: Is a directory
grep: new_folder: Is a directory
grep: p12: Is a directory
grep: permission: Is a directory
grep -w access *
grep -i Access *
grep -r access *
grep -x "access is there in file2.txt" *
grep -l access *
grep -c access *
grep -m1 access *