rm -rf argument list too long

Well to often here is this the error message rm -rf argument list too long cause there are too many file in the directory. With the help of a little script those files can be deleted.

for FILE in `ls`
do
rm $FILE
done

Leave a Reply

Your email address will not be published. Required fields are marked *