Leung Yau Wai wrote:
> 
> On Wed, 15 Apr 1998, Craig Kattner wrote:
> 
> > That's your locate database being updated. Next time you need to find a
> > file instead of using find try "locate filename" and it'll check the
> > database instead of the whole filesystem. Much faster and less disk work.
> 
>         I'm never come across the locate utility!.. locate is just a
> program to locate the file when I'm give a file name?!

Locate will find EVERY occurance of a name. For instance,

        locate man

would find

        /usr/bin/man
        /home/dummy/manager
        /live/usr/podunk/many
        /var/XFCE/3dicons/adamant.xpm

and any other file that contains the 'man' portion. So, using locate is
wisely performed with '| more' afterward or everything, including the
file you want to find, may scroll off of the screen along with hundreds
of other files.

>         How about if I'm not update it every day?  will it cause any
> trouble?!

It just won't add new or moved files to the list. You can update it at a
time convenient to you by typing

        updatedb

whenever you like. I turn off a drive or 2 and then run it manually. I
already know what's on the RH5.0 cd and don't need that included in the
list.


-- 
We all be gwine upta hebbin!


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to