• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sherlock and my Sad Source Search Story
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Sherlock and my Sad Source Search Story (From: email@hidden)

  • Prev by Date: Re: It is time for me to take a decision.
  • Next by Date: NSPortTimeoutException Pb
  • Previous by thread: Re: Sherlock and my Sad Source Search Story
  • Next by thread: Windows without traffic lights
  • Index(es):
    • Date
    • Thread