Skip to content
Home » Blog » To find files which has specific text in your server

To find files which has specific text in your server

How to print the files which has a string through out the server: Use this command:
find /www/*/httpdocs/ -type f -iname "*.php" | xargs grep 'string goes here'

 

Leave a Reply

Your email address will not be published. Required fields are marked *