Ubuntu Text Search in Command Line (Gnome Terminal)

If you want to search for different text in files or folders, without using any Visual IDE, then Ubuntu provides you a good and easy way to search for the folder or files in Terminal (Gnome Terminal).

How To Search for Files or Folders?

Simply goto the Terminal (gnome-terminal) through:

Applications -> Accessories -> Terminal

and write the following command:

grep -r ‘webtechquery’ *

where webtechquery is the text you want to search in your files.

This will bring the results with the file names, containing all the files which has the text webtechquery.

Uncategorised

Leave a Reply

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