SPACEIO ~ LINUX  Command of the Day #2

grep -rni: find one line in a thousand files

Finding one line in a thousand files should take seconds, not hours.

grep -rni "password" .

What it does

grep searches inside files. -r goes through folders, -n shows line numbers, and -i ignores capital letters.

Why it matters

In a CTF or a security review, searching for words like password, key or token across a project is one of the first things you do.

Try it

Try it on a folder of your own notes. What did it find? Share what you found in the community.