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

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



On Mon, Aug 21, 2023 at 03:19:19PM +0200, Roger Price wrote:
> On Mon, 21 Aug 2023, Hans wrote:
> 
> > find .mozilla -name favicons.sqlite -ls
> >  1512492   2144 -rw-r--r--   1 myusername myusernama  2195456 Aug 21 13:29 .mozilla/firefox/gs0gkgv2.default/favicons.sqlite
> >  1515049    260 -rw-r--r--   1 myusername myusername   262144 Aug 18 22:36 .mozilla/firefox/th3dv2jy.default-1461749950404/favicons.sqlite
> 
> 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.

To each job its tool.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


Reply to: