Linux下删除大量文件效率对比
测试一下Linux下面删除大量文件的效率。
首先建立50万个文件
1. rm删除
$ time rm -f *
zsh: sure you want to delete all the files in /home/hu[......]
知足常乐,顺其自然
测试一下Linux下面删除大量文件的效率。
首先建立50万个文件
1. rm删除
$ time rm -f *
zsh: sure you want to delete all the files in /home/hu[......]