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

Re: Delete 4 million files



kj wrote:
> 
> Now, I've been running the usual find . -type f -exec rm {} \;
> but this is going at about 700,000 per day.  Would simply doing an rm
> -rf on the Maildir be quicker?  Or is there a better way?

As already said, this calls rm for every file. Another alternative is with newer
versions of find:

  find . -type f -exec rm {} \+

This calls rm for as many files as fit on the command line.
But probably "rm -rf" is the fastest.
-- 
Regards,
Jörg-Volker.


Reply to: