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

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*'



Enjoy the article? Join over 20,000+ Swift developers and enthusiasts who get my weekly updates.