Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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: 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
add comment

1 Answer 1

up vote 3 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

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.