Linux: How to use serach command in Linux?

May 16, 2011 | In: LAMP, Linux, Ubuntu, web development

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 ).