From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 04:45:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 800851065675 for ; Fri, 11 Jul 2008 04:45:26 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by mx1.freebsd.org (Postfix) with ESMTP id E6CF28FC0C for ; Fri, 11 Jul 2008 04:45:25 +0000 (UTC) (envelope-from freebsd-questions@slightlystrange.org) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080711045012.VVTM28496.mtaout01-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Fri, 11 Jul 2008 05:50:12 +0100 Received: from catflap.slightlystrange.org ([86.6.1.242]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080711044530.JMUD18637.aamtaout04-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Fri, 11 Jul 2008 05:45:30 +0100 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id 70283619C; Fri, 11 Jul 2008 05:45:21 +0100 (BST) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by catflap.slightlystrange.org (Postfix) with ESMTPS id 1A3726103 for ; Fri, 11 Jul 2008 05:45:21 +0100 (BST) Received: (from danielby@localhost) by torus.slightlystrange.org (8.14.2/8.13.4/Submit) id m6B4jIgx089484 for freebsd-questions@freebsd.org; Fri, 11 Jul 2008 05:45:18 +0100 (BST) (envelope-from freebsd-questions@slightlystrange.org) Date: Fri, 11 Jul 2008 05:45:18 +0100 From: Daniel Bye To: FreeBSD Message-ID: <20080711044518.GA84566@torus.slightlystrange.org> Mail-Followup-To: FreeBSD References: <007a01c8e305$e8b07840$3f83a8c0@neusofteaf5839> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <007a01c8e305$e8b07840$3f83a8c0@neusofteaf5839> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.0-STABLE i386 Subject: Re: locate:database too small X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 04:45:26 -0000 --/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--