Search
Home
About me
Mission statement
Site requirements
Photos and copyright
GDPR et al
Articles
CV
Gallery
Motorcycles
Projects
BackupPC
Bebismanualen
Project Honeypot
Retro mountainbikes
Stories
Contact
You are here:
Main page
Articles
Linux et al
Search for string in all files
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: 786
file
files
search
string
all
Previous article: Search for keyword and the next line in all files in this folder
Prev
Next article: Setup key for BackupPC clients
Next
Related articles
Search for duplicate strings in all files
What file system does the linux disk or partition use?
How to undelete a file in linux?
Delete directories and files with too long names
Checksumme-verifiering av ISO-avbildningar och eller andra filer
Popular tags
linux
120
CentOS
48
Windows
34
Ubuntu
31
Kubuntu
17
notes
15
ssh
14
virtualbox
12
vbox
11
CLI
10
server
9
vbix
9
Debian
8
delete
8
backuppc
7