From owner-freebsd-questions Sat Sep 22 22:51:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dark4ce.com (dark4ce.com [194.109.74.197]) by hub.freebsd.org (Postfix) with ESMTP id A6F8A37B41B for ; Sat, 22 Sep 2001 22:51:51 -0700 (PDT) Received: (from freebsd@localhost) by dark4ce.com (8.11.6/8.11.6) id f8N5poM48558 for freebsd-questions@freebsd.org; Sun, 23 Sep 2001 07:51:50 +0200 (CEST) (envelope-from freebsd) Date: Sun, 23 Sep 2001 07:49:54 +0200 From: Hanno Liem To: cyu0635@home.com Cc: question@freebsd.org Subject: Re: locate command Message-ID: <20010923074954.A12557@dark4ce.com> References: <3BAD646F.F582EFD6@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BAD646F.F582EFD6@home.com>; from cyu0635@home.com on Sun, Sep 23, 2001 at 12:26:23AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 23, 2001 at 12:26:23AM -0400, cyu0635@home.com wrote: > Hi all > > I try the command 'locate' but it is broken > how do I recover it? (assuming you are new to this, as you don't post any hints as to what is actually wrong) Do you have a locate database? 'locate' uses a database of all the files on your system, which needs to be created first. The database usually lives in /var/db/locate.database. There is a script to update the database. It is: /usr/libexec/locate.updatedb (btw, why is it here and not in /sbin or something? I always found it illogical) ... so run this to create the database if you don't have one. If something else is wrong, post more details... Han To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message