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 {} \;
- Log in to post comments