Original question: Finding all files containing a text string on Linux from Nathan
I'm trying to find a way to scan my entire Linux system for files with a specific text string. Just to be clear, I look for a text string in the file, not the file name.
When I was looking for how to do it, I found this solution twice:
find / -type f -exec grep -H 'cadena-de-texto-para-buscar' {} \;
However, it did not work. Apparently, it shows all the files in the system.
Is this the best way to do it? What should it be? This ability to search for strings of texts within archives would be extraordinarily useful for some programming projects that I am doing.