Search for string in all files
Q: How do I search for a specific text string in a all files?
A: Say you want to find the string "sysadmin" in all files recursively in the folder /root/files.
# grep -R "sysadmin" /root/files/*
Written by:
Sorin Srbu
Last Updated: 03 January 2023
Hits: 521
file
files
search
string
all