Linux Command Line Trick: Find All Files With Specific Keyword In Title

19 Jun

I’m currently learning some cool command line tricks, so I wanted to share.

To find all files in the current directory (and sub-directories) that have a specific keyword in the title, simply type the following into your command line:

 $ find . -name '*keyword*'

Here is a more comprehensive example if you want to test this out from your command line:

#clone this directory (or whatever directory you're working with)

$ git clone

#go into the new CLI-Obstacle-Course directory

$ cd CLI-Obstacle-Course

#find all files in the directory that have the word "controller" in the title

$ find . -name '*controller*'




Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s