Error: Argument list too long

Using linux shell commands such as cp, mv, rm you could encounter the following error message:

/bin/cp: Argument list too long.

Obviously you can modify system settings and increase the max number of files, but an easyer solution is using the find command.


Example: to remove a great number of temporary files in a folder, all with the ‘.dieg’ extension , try this (or something similar!):

find ./ -name ‘*.dieg’ -exec rm -r -v {} \;

As usual, type man find from terminal for more detailed information 😉

Leave a Reply

Your email address will not be published.