Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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:… – 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
up vote 4 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.