Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2001 07:49:54 +0200
From:      Hanno Liem <freebsd@dark4ce.com>
To:        cyu0635@home.com
Cc:        question@freebsd.org
Subject:   Re: locate command
Message-ID:  <20010923074954.A12557@dark4ce.com>
In-Reply-To: <3BAD646F.F582EFD6@home.com>; from cyu0635@home.com on Sun, Sep 23, 2001 at 12:26:23AM -0400
References:  <3BAD646F.F582EFD6@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010923074954.A12557>