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

Re: Delete 4 million files



2009/3/18 Jörg-Volker Peetz <jvpeetz@web.de>:
> 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?

worse reading

http://translate.google.com/translate?prev=_t&hl=en&ie=UTF-8&u=http://www.linux-club.de/viewtopic.php%3Ff%3D21%26t%3D101912&sl=de&tl=en&history_state0=


>
> 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.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


Reply to: