[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: locate



> I´m a newbie, trying to make locate work the expected way.
> Everytime I try to locate something new in my system, locate provide no
> information, so I have to imagine the path to the files (usr/bin, etc..)
>
> Can anybody tell me how to run a cron to make locate rebuild its database
> (think should be this way).

By default, this should be in place already. Check for the file
/etc/cron.daily/slocate.cron

#!/bin/sh
/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e
"/tmp,/var/tmp,/usr/tmp,/afs,/net"


Andreas Lund (floyd@atc.no)
-- Tel: +47 90.07.71.62 / +47 63.88.33.56
Ano-Tech Computers (http://www.atc.no/)
** Western civilization? I think it's a good idea **






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []