Searching text on multiple files in Linux

To search for certain text inside multiple files in Linux we can use ‘grep’ command, here is how i do it:

So for example you want to find all .php and .conf files inside the directory “config” that contain the word “mysql” the command should look like this:

 

Leave a Reply

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