The Art of Writing Short Stories Read Here

Search word or file Using SSH(Putty)

 Fastest and efficient way is to use grep command


For search in a file :

grep "wordtofind" config.php

For search the word and get list of files form current directry 

grep -l "wordtofind" *

For search the word recursively from all the subfolders:

grep -r "wordtofind" *

or to read Human readable format 

grep -r -H "wordtofind" *

Thanks 
You may also like :