/bin/rm: Argument list too long

/bin/rm: Argument list too long

Often when trying to empty nginx tmp folder by running

rm -rf *

I get this message: Argument list too long

My workaround this problem is to run:

find . -name '*' | xargs rm

In the above example the command will forcefully delete all files in the current directory.

Leave a Reply

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

18 − two =

This site uses Akismet to reduce spam. Learn how your comment data is processed.