I was recently needed to delete a large number 10,000,00 files in one of folder running on Linux CentOS.
I was running the below command inside the folder
rm -rf *
but it was giving me below error message:
bash: /bin/rm: Argument list too long
I could not remove them, I take help of Linux find .
command. It is slow but it did work for me:
find . -ls -exec rm {} \;
There are 0 comments