It seems that Apple doesn't want us to use locate, at it is making it so hard to setup.

If there a way to use finder database from the command line? Maybe I can make an alias.

I would appreciate solutions that would not require system reconfiguration, just because I don't want to repeat the process each time I upgrade the system of switch computers.

  • locate works fine: sudo /usr/libexec/locate.updatedb – user588 Apr 8 '12 at 21:18
  • What is so hard? You asked this question and got an answer here: apple.stackexchange.com/questions/14836/… – user588 Apr 8 '12 at 21:20
  • @mankoff yes, it works as long you are updating its database, and also cron does not work anymore, so you have to install it in launchd… so it is much easier to add alias locate="mdfind" – sorin Apr 8 '12 at 21:20

You could use mdfind, which uses the Spotlight database. More information on this man page.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .