PDA

View Full Version : Better way to empty folder in linux?



Fli
10-19-2013, 01:22 PM
Hi, which command is more efficient for emptying folder with huge amount of files?

A) find /var/qmail/queue/$i -type f -exec rm {} \;
B) find /var/qmail/queue/$i -type f -delete;

why do you think so, do you know any other or better ones?

Here is the similar topic: Best, fastest least resources intensive way to empty folder (http://internetlifeforum.com/linux-forums/738-best-fastest-least-resources-intensive-way-empty-folder/)