How to Find Text Within Files

Linux Logo

How to Find Text Within Files

Grep

Search through files for a certain string. This will even search inside binary files.

grep -r "1300111" /mnt/usb1/

ripgrep

ripgrep port:

recursively searches current directory for ‘port:’
ripgrep for more info