Posted by: Dinesh Cyanam | October 23, 2010

Search Inside Files For A Keyword In Linux

To find files containing a search term or a keyword, we can use the command called grep, using which you can use to find the lines inside any file or a list of files.

grep -i -n ‘<keyword or search term>’ *
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.