On 16/05/14 14:57, Chris Green wrote:
Does anyone else find that 'locate' does all the wrong things for them? It's not that it's incapable of doing what I want but the defaults seem to be set up to be purposely the opposite of what I actually need it to do.
Have you tried "whereis"?
The whereis utility checks the standard binary, manual page, and source directories for the specified programs, printing out the paths of any it finds.
See: http://en.wikipedia.org/wiki/Whereis
Also, locate uses a database IIRC, which on my Gentoo systems is maintained nightly (cron) by a tool called updatedb. Consequently it's very fast.
Cheers, Laurie.