Ian McNally

Finding files fast in OS X

May 18, 2014

If you’re using the find command to search for files via the command line on OS X, might I suggest mdfind?

Your normal search:

find ~/dev -name 'readme.md'

takes 1.872 seconds

Where the equivalent mdfind search:

mdfind -onlyin ~/dev -name readme.me

takes 0.13 seconds!

Chant it with me: mdfind! mdfind!


Ian McNally

Hey, I'm Ian. I build websites and write about what I learn as I go. Follow me on Twitter.