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