How to find a file containing a particular text string Search all subfirectories recursively grep -r "redeem reward" /home/tom/ To display only fines names, add -H option, or $ grep -H -R vivek /etc/* | cut -d: -f1 To ignore case, add -i option.