How to search files from command line under OS X?

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.


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