LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Searching ??? (http://www.linuxquestions.org/questions/linux-general-1/searching-273200/)

ilnli 01-03-2005 02:56 AM

Searching ???
 
If we can find everything from find command than why is there slocate or locate commands present in linux?

MasterC 01-03-2005 04:24 AM

Variety. If I can create a text file with vim, why is there anything else, much less 15 thousand alternatives?

Cool

slackie1000 01-03-2005 04:29 AM

Re: Searching ???
 
Quote:

Originally posted by ilnli
If we can find everything from find command than why is there slocate or locate commands present in linux?
hi there,

in the case of slocate, the search is based in a binary database file. what makes much faster. that is why you need always to run updatedb to keep that up to date.
AFAIK, find will search the tree directory structure in your filesystem. what is robust but not that fast. :D

regards

slackie1000

/bin/bash 01-03-2005 05:20 AM

The following discussion covers this topic pretty well.

Locate vs. find

slakmagik 01-03-2005 05:27 AM

Quote:

Originally posted by /bin/bash
The following discussion covers this topic pretty well.

Locate vs. find

Nice link. This guy took my answer, which I think is the essence of it.

Quote:

That's not true, they do not preform the same task.
`find' doesn't find files, it's just a side effect of
the program. `Find's' real occupation is to evaluate files.
a.k.a. to preform tests on them...

s/pre/per/

Wouldn't so much call it a side-effect, as a preliminary step, though. But people are missing a kicking tool if they only use it to find stuff and not do stuff to what they've found. :)

slackie1000 01-03-2005 05:27 AM

Quote:

Originally posted by /bin/bash
The following discussion covers this topic pretty well.

Locate vs. find

hi there,

indeed. nice link.
thanks

regards

slackie1000


All times are GMT -5. The time now is 11:47 AM.