<br><br><div><span class="gmail_quote">On 08/11/05, <b class="gmail_sendername">Matt Morgan</b> <<a href="mailto:minxmertzmomo@gmail.com">minxmertzmomo@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 11/8/05, Paul Howarth <<a href="mailto:paul@city-fan.org">paul@city-fan.org</a>> wrote:<br>> M E Fieu wrote:<br>> > Hi.. I tried to look for a file in a linux box using both locate and find , when using find I can
<br>> > find my file but locate cannot.  However I found sometime locate will work when I look for other<br>> > file.  what is the difference between locate and find ?<br>> ><br>> > [root@wa html]# locate 
abc.pl<br>> > [root@wa html]# find / -name abc.pl -print<br>> > find: /proc/21829/fd: No such file or directory<br>> > /usr/local/abc/abc.pl<br>> > [root@wa html]#<br>><br>> locate uses a database that is refreshed periodically, whereas find does
<br>> a search on your live filesystem.<br>><br>> So locate is likely to be faster, but find will be more up to date.<br><br>/usr/bin/updatedb is the command that updates the slocate database<br>that locate uses. You can make that happen nightly with a script in
<br>/etc/cron.daily, if it's not in there already.<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>
Curiously, it is expressly disabled in FC4 (why, is there something
better? What?). If you wish to use it, as I do, you have to  edit
/etc/updatedb.conf.<br>
<br>