/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.