Scott retweeted about removing 1MM files[1]. So I thought I'd try it out: $ cd /tmp $ mkdir tmp $ cd tmp $ time -p seq -f "%05g" 1 1000000 | xargs touch real 23.99 user 1.70 sys 15.74
$ cd /tmp $ cd tmp $ time -p ls -U | xargs rm real 737.51 user 1.52 sys 22.66 $ cd /tmp $ time -p rm -rf tmp real 20.63 user 0.36 sys 7.35 $ cd /tmp $ mkdir empty $ time -p rsync -a --delete empty/ tmp/ real 25.69 user 1.38 sys 10.75 /tmp is an ext4 filesystem. I got very different results on the Mac. Took much longer. [1] https://twitter.com/scottgranneman/status/340859906368364544 Regards, - Robert -- -- Central West End Linux Users Group (via Google Groups) Main page: http://www.cwelug.org To post: [email protected] To subscribe: [email protected] To unsubscribe: [email protected] More options: http://groups.google.com/group/cwelug --- You received this message because you are subscribed to the Google Groups "Central West End Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
