This tutorial shows how to search and print which files contain your specified text or string in Ubuntu and other Linux in command line, with examples.
Search file or file content is an important skill for Linux administrator. I’ve shown how to use locate command to search files through the keyword in its file-name, path, and file type.
Here I’m going to show you how to search files if you know any text or string they contain.