gregs

locate

by gregs on Oct.27, 2005, under *nix

I used to rely on whereis and find to locate programs and files on my debian box, but these weren't being very helpful when I tried to find a file I new existed on the system. I stumbled across the utility locate after a quick google search. And it did locate that elusive file for me. But only once I had updated it's database (which it kindly informed was 8 days out of date). To update the locate database, simply log on as root and type:

CODE:
  1. udpatedb

UPDATE

If you are trying to do something similar on your Mac, the command can be found here (so you might to use the full path):

CODE:
  1. /usr/libexec/locate.updatedb


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!