Thursday, October 3, 2013

Search Spotlight from the OS X Terminal


While you can use Spotlight pretty easily with the Command+Space hotkey, you might want a little more control over the results you get. Utilizing the mdfind command in the OS X Terminal can make that happen quickly. Take this for example: > mdfind -name homebrew That command will tell mdfind—the process that handles Spotlight searches—to search by name and find any file name containing the word homebrew. It can do a whole lot more, too. If you want to learn the different kind of searches you can perform in the terminal with mdfind, check out its man page.

No comments:

Post a Comment