LINUX – Argument list too long

In some cases, when trying to delete a large amount of files the following error may occur:

bash: /bin/rm: Argument list too long

Solution:

Use the command below to delete the files:

$ find . -type f -exec rm -f {} ;

Leave a Reply

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