locate searches for files/directories on the machine. It gives all matches and does not work with a recursive listing from a given path like find. locate is universal. find is local.
$ locate passwd /var/lib/dpkg/info/base-passwd.md5sums /var/lib/dpkg/info/base-passwd.postinst /var/lib/dpkg/info/base-passwd.prerm /var/lib/dpkg/info/passwd.conffiles I snipped out the output. But beware! su # /usr/bin/updatedb& Without the database having the latest entries locate cannot do its job. But it is excellent when compared to find(if you leave out this defect that it is not real time), since it finds in your entire machine. Plus your nfs shares, samba shares and your local Windows mountpoints if you keep them mounted. It is great. -i ignores case. I have never bothered to read the man page. But I know that locate is married to updatedb. ;) -Girish -- Gayatri Hitech web: http://gayatri-hitech.com SpamCheetah Spam filter: http://spam-cheetah.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
