I'm trying to find a way to scan my entire Linux system for all files containing a specific string of text. Just to clarify, I'm looking for the text within a file, not in a file name.
How to do this, I came across the below solution twice:
find / -type f -exec grep -H 'text-to-find-here' {} \;
However, it doesn't work. It seems to display a single file in each system.
Is the close to the single proper way to do it? If not, how should I? This ability to find the text strings in files would be extraordinarily useful for some programming projects I'm doing.