Centos – Argument list too long

If you have in directory more than 1024 files and you wish to delete them all at once, for sure you got error message “Argument list too long”.
e.g. you did:

 

To solve this problem, pipe the names of files one by one to rm command like this:

It should be easy and still effective solution for you.

Leave a Reply

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