Argument List too Long

Submitted by Anonymous (not verified) on Fri, 04/30/2010 - 13:07

If you try to remove a directory with ie 500.000 files, you will get an error like this: Argument list is too long, cannot delete.

rm -Rfv ./some-dirs-with-unwanted-files

Instead of rm use find and rm.

find ./ -exec rm -vf {} \;

Add new comment