I'd like to remove a folder with lots of files (namely millions of) efficiently. When I issue rm -rf folder/ it takes hours and I have to kill it. I'm wondering whether there is a magical way of doing this faster? Another thing is when I want to get the size of the folder with du -hs folder/ it also takes very very long time, I was never patient to wait for it and killed after several hours.

Thanks,

link|improve this question
7 hours? Wow... – ricbax Oct 19 '10 at 15:50
feedback

1 Answer

Have a look at this question: http://serverfault.com/questions/183821/rm-on-a-directory-with-millions-of-files

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.