Locate only finds files by looking up the name in a database.
Once a day it regenerates the database.
If you're just looking for a filename, and you don't mind it being
anywhere up to 24 hours old (sometimes more, but rarely), then
ocate is a FAR faster way to do things.
Find, on the other hand can
Sunday, November 28 14:38:06
> On Mon, 2004-11-22 at 22:22, Ankit Jain wrote:
>
> Which is more efficient? /if both perform the same
> work and are not different then why shoudl we have 2 ?
That's not true, they do not preform the same task.
`find' doesn't find files, it's just a side effect of
t
If you look at the 'updatedb' script, you'll even find that it uses
the 'find' command to build the static database. Normally the database
is rebuilt only once per/day -- in the wee hours of the morning if
your computer is on then otherwise, it'll run soon after you turn it
on in the morning (in t
On Mon, 2004-11-22 at 22:22, Ankit Jain wrote:
> Which is more efficient? /if both perform the same
> work and are not different then why shoudl we have 2 ?
As far as I know, locate is based on a database storing locations of
file. It doesnot search physically throughout the directory hierarchy.
S
Which is more efficient? /if both perform the same
work and are not different then why shoudl we have 2 ?
thanks
ankit jain
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http