Last updated
Last updated
the below command can be used to find specific objects faster
find /var/www/html/ -type f -exec grep -iwl "robert" {} + 2>/dev/null
</ -type f -exec grep -iwl "robert" {} + 2>/dev/null
/var/www/html/cdn-cgi/login/db.php
* the + instructs the cmd to find batches multiple files into a single command execution, making it much faster.
- is used to optimized execution (batches multiple files into one grep call for speed).
* the -w ensures a strict search for only the exact word "robert"
* -i is used for Case-insensitive search (robert, ROBERT, Robert all match).
* -l will only lists filenames (faster if you just need to know where "robert" appears).
* {} is a placeholder for found files.