Date: Fri, 11 Jul 2008 05:45:18 +0100 From: Daniel Bye <freebsd-questions@slightlystrange.org> To: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: locate:database too small Message-ID: <20080711044518.GA84566@torus.slightlystrange.org> In-Reply-To: <007a01c8e305$e8b07840$3f83a8c0@neusofteaf5839> References: <007a01c8e305$e8b07840$3f83a8c0@neusofteaf5839>
next in thread | previous in thread | raw e-mail | index | archive | help
--/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 11, 2008 at 11:26:19AM +0800, EdwardKing wrote: > I use locate command,like follows: > $locate mail > locate:database too small: /var/db/locate.database >=20 > I know it need to update from document: /usr/libexec/locate.updatedb ,but= I don't know how to execute above command,I am a newer to Unix,how to do i= t? Probably the best way to do it is to become root using su(1) or sudo(1), and then type: /etc/periodic/weekly/310.locate This could take several minutes, depending on your system. Or you could wait another couple of days, and it will run automatically (take a look at cron(8), crontab(1,5), periodic(8) and periodic.conf(5)) --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkh25V4ACgkQixf5fBYiFmodeACgqIJiOjun3WPKlqXtk14C9uPt gOIAoMk7WgbSu/2WTLl/qgrUI1upnxPB =Wcqu -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080711044518.GA84566>