Re: Sherlock and my Sad Source Search Story
Re: Sherlock and my Sad Source Search Story
- Subject: Re: Sherlock and my Sad Source Search Story
- From: Rajpaul Bagga <email@hidden>
- Date: Thu, 9 Aug 2001 21:36:21 -0700
The 'locate' command is definitely the way to go, especially if you have
no idea where it might be. For scanning large areas of the disk it's
much faster than find because it is pulling the information out of a
pre-indexed database. That's where the periodic updates come in. Just
remember this if you are looking for a recently added file.
If you want to catch EVERY file on the disk, be sure to run the
locate.updatedb command as root if you decide to run it manually.
-Rajpaul
On Thursday, August 9, 2001, at 10:01 AM, email@hidden
wrote:
An alternative to find is the command 'locate'. It's pretty simple,
just do a 'locate <filename>' on the commandline. If it doesn't find
what you're looking for, run '/usr/libexec/locate.updatedb' and then
try it again.
--Ryan
PS-- locate.updatedb is by default setup to run weekly. You may wish
to change it's cron entry to make it run daily or even multiple times a
day depending on how much you use it. Take a look at /etc/crontab,
/etc/weekly, and /etc/daily for more ideas of what you can do.
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev