Linux: How to use serach command in Linux?

In windows we can easily find the any file in the folder and it doesn’t matter that how many folders inside that folder.. and it is possible by pressing F3 key on the keyboard. But in the linux we have to use command prompt to find such type of searching.

In ubuntu we can do by following command:

sudo grep -ir “keyword” .

To run this command we need to go in the particular folder first. then we will run this command by terminal. Grep will search the keyword which typed in double quoted and -ir is used for case-insensitive and recursive process.

You must end command with . ( dot ).

 


Comments

2 responses to “Linux: How to use serach command in Linux?”

Leave a Reply

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

*