On 2023-08-21 17:21, to...@tuxteam.de wrote:
On Mon, Aug 21, 2023 at 02:50:07PM +0000, Michael Kjörling wrote:
On 21 Aug 2023 15:56 +0200, from to...@tuxteam.de:
>> For me command "locate" is easier to use than "find":
>
> They do different things. Locate is much faster, but it only looks
> into file names. Find can do nearly everything, like looking into
> file metadata ("show me all files younger than 12 days" or "owned
> by www-data"), running external programs (e.g. grep), yadda, yadda.
Another downside of locate is that it relies on its database being up
to date.
Depending on what you're trying to do, they may both be equally
useful, or one may be far more useful than the other.
Don't get me wrong. I /do/ use both, and take care that the locate
database is up-to-date.
Tools, jobs and that :)
When you imagine what it must be doing is amazing how quick updatedb is.
mick