Ad Code

How can I find all files containing specific text (string) on Linux?

Use grep -ilR:

grep -Ril "text-to-find-here" /
i stands for ignore case (optional in your case).
R stands for recursive.
l stands for "show the file name, not the result itself".
/ stands for starting at the root of your machine.


 

Post a Comment

0 Comments