[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "locate" easier to use than "find"



On Mon 21 Aug 2023 at 18:21:41 +0200, tomas@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 tomas@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.

plocate-updatedb.service and plocate-updatedb.timer take care of
that for me. :)

> Tools, jobs and that :)

Indeed.

-- 
Brian.


Reply to: