[X4U] locate command problem

Kirk McElhearn kirklists at wanadoo.fr
Fri Mar 25 12:12:22 PST 2005


On 3/25/05 8:36 PM, "Kansas Territory" <kansast at mac.com> wrote:

> I recently reformated my computer.. installed MacOSX 10.3 and all it's
> updates.  Has been up and running for several days now.   All seems
> well. Except I went to run the "locate" command from the command line
> and I'm getting this error :
> 
> locate: no database file /var/db/locate.database.
> 
> 
> Any suggestions ?

Run sudo periodic weekly to create the database; it is not there by default.
(Makes sense, of course, because if it were there it wouldn't reflect the
actual contents of your HD.)
 
 
Kirk
 
          Author of: The Mac OS X Command Line: Unix Under the Hood
               -        -        -        -        -        -
             Read my blog: Kirkville -- http://www.mcelhearn.com
          Musings, Opinion and Miscellanea, on Macs, iPods and more
       Kirk McElhearn | Chemin de la Lauze | 05600 Guillestre | France 





More information about the X4U mailing list