*BSD News Article 9855


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA6660 ; Mon, 11 Jan 93 22:15:08 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!mcsun!sunic!chalmers.se!news.chalmers.se!pao
From: pao@cd.chalmers.se (Per Anders Olausson)
Newsgroups: comp.unix.bsd
Subject: Re: Locate/fast-find (Was: Re: Shared lib X for 386bsd?)
Message-ID: <C0u7rz.158@news.chalmers.se>
Date: 14 Jan 93 09:31:10 GMT
References: <fXOtCvR@quack.sac.ca.us> <15847@lupine.ncd.com> <carlp.726981966@frigg>
Sender: news@news.chalmers.se
Organization: Chalmers Computer Society
Lines: 21
Nntp-Posting-Host: sponsz.cd.chalmers.se
Comment-To: carlp@frigg.isc-br.com

In article <carlp.726981966@frigg> carlp@frigg.isc-br.com (Carl Paukstis) writes:

>Anyhow - on both my home BSD system and some heavily-used SYSV development
>systems I administer here at work, I run a little cron task every
>night that does a "find / -print >/ALLfiles".  I've aliased "locate" to
>a bash function that greps /ALLfiles.  It ain't up-to-the-minute, but
>it beats fumbling around and waiting for interactive "find" sessions.

Please note that for 386bsd the proper way to handle this is to run:

		/usr/libexec/locate.updatedb

periodically. (via cron...)

The database it creates will be in:

		/var/db/locate.database

Hope this helps anyone out there.

pao