目录下文件过多,如超过1万个,rm命令就会无法批量删除文件。使用如下方法:
find . > tmpfile , #删除tmpfile中第一行. 然后: cat tmpfile | xargs rm -f