From owner-freebsd-questions Tue Jan 5 17:21:55 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18485 for freebsd-questions-outgoing; Tue, 5 Jan 1999 17:21:55 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA18470 for ; Tue, 5 Jan 1999 17:21:53 -0800 (PST) (envelope-from ludwigp@bigfoot.com) Received: (qmail 27805 invoked from network); 6 Jan 1999 01:21:12 -0000 Received: from speedy.chip-web.com (HELO speedy) (172.16.1.1) by inet.chip-web.com with SMTP; 6 Jan 1999 01:21:12 -0000 Message-Id: <4.1.19990105171910.00a31f00@mail-r> X-Sender: ludwigp2@mail-r X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Tue, 05 Jan 1999 17:21:09 -0800 To: "Chase Masters" , freebsd-questions@FreeBSD.ORG From: Ludwig Pummer Subject: Re: locate command In-Reply-To: <199901060106.RAA26125@law-f54.hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 05:06 PM 1/5/99 , Chase Masters wrote: >This is my first time away from linux and working with a true UNIX OS. >After installing and starting to get things setup I came across an error >I have never saw before. Could you help? The error follows after I try >to locate something, like "locate pico" for example. I get this error. >"locate: database too small: /var/db/locate.database" >Much appreciate any help. Thanks. >-Mannix- In FreeBSD, locate searches through a database (/var/db/locate.batabase) that gets recreated when the /etc/weekly script gets run (usually by Cron). Just run /etc/weekly when the system is idle and it will create the database. If you don't want to do that, you can just run find / -name file_to_find but that traverses your entire directory tree, so locate is much faster once its database has been created. --Ludwig Pummer ( ludwigp@bigfoot.com ) ICQ UIN: 692441 ( ludwigp@email.com ) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message