I'd like to find all files in the current directory and subdirectories whose name contains the string "ram". Solutions: 1. find . -type f -name "*ram*" The find command will take long time because it scans real files in file system. The quickest way is using locate command, which will give result immediately: 2. locate "ram" If the command is not found, you need to install mlocate package and run updatedb command first to prepare the search database for the first time. How to install locate command on Amazon Linux? $ sudo yum install mlocate $ sudo updatedb $ sudo updatedb $ locate "ram" /home/work/ram.txt /usr/share/mime/application/vnd.google-earth.kml+xml.xml /usr/share/mime/application/vnd.google-earth.kmz.xml /usr/share/mime/text/x-google-video-pointer.xml 3. find . -type f -exec grep -H 'text-to-find-here' {} \; Usage : find . -type f -exec grep -H 'ram' {} \; 4.grep -rnw '/path/to/somewhere/...