[clug] What's the fastest way of deleting files?

Robert robert at apex.net.au
Wed May 11 12:01:14 GMT 2005


Its possible that noatime on the FS will help as well.
It could be updating the atimes on all the directories as it traverses 
through them...


Damien Elmes wrote:

> Michael James <clug at james.st> writes:
> 
> 
>>It's partition cleanup time again,
>> what's the fastest way of deleting files?
> 
> 
> [...]
> 
> 
>>rm -r				takes forever, gives no feedback.
> 
> 
> rm -rv will make rm display the files as they're being deleted, and
> will be faster than a find+xargs solution.
> 
> But perhaps the question is why you want to see all the files in the
> first place? If you want to have a rough idea of the progress, you
> could open up another terminal and type 'watch df' instead.
> 
> Cheers,
> 
> Damien


More information about the linux mailing list