Fast way to delete files in linux (快速删除大量文件的方式)

访问量: 3764

refer to: http://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux

result: (conclusion: using find is the safe way, perl is the fastest, rsync is not a bad choice )

COMMAND	TIME TAKEN
RM Command	Is not capable of deleting large number of files
Find Command with -exec	14 Minutes for half a million files
Find Command with -delete	5 Minutes for half a million files
Perl	1 Minute for half a million files
RSYNC with -delete	2 Minute 56 seconds for half a million files

订阅/RSS Feed

Subscribe