On Tuesday 20 November 2001 08:17 pm, SKLIM wrote:
> I need help again on Linux Command. Does anyone know what is the
> command for search a files?
> For Example : I like to serch a files call 123456
'locate 123456' If you want to make locate case insensitive, use
'locate -i <search_string>' (see 'man locate' for other options)
BUT, locate will only find files that are currently in the
database. If you don't leave your system on overnight, or you just
installed/created some files, your db isn't updated, and you'll need
to run (as root) 'updatedb' in order for locate to find newer files.
'locate -u' as root also can be used to update the db. Either
command could take a few minutes to complete if you have a slow
system and a lot of files.
Tip: if you dual boot Windoze and it's on a fat16 or fat32
partition, edit the last line in /etc/updatedb.conf and remove any
'vfat' entry. It'll then probly look somethin like this
PRUNEFS="nfs,smbfs,ncpfs,proc,devpts,supermount,iso9660,udf,usbdevfs,devfs"
To further explain, any of the filesytems in this line will not be
scanned during an 'updatedb', and likewise 'locate' won't see 'em.
After removing 'vfat', (and 'updatedb') locate can find Windoze files
too.
--
������Tom Brinkman � � � � � � Galveston Bay, USA
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com