Code Security

Find All Files Containing a Specific String (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.

Last updated