The solution to the failure of batch deletion of files by rm command
If there are too many files in the directory, if there are more than 10, 000 files, the rm command will not be able to delete files in batches.
Use the following methods:
Find. > tmpfile, # Delete the first line in tmpfile. Then: cat tmpfile | xargs rm-f