How to delete files in a directory with too many files on Linux (-bash: /bin/rm: Argument list too long)
If you try to delete all files in a directory with too many files, you will get this error:
-bash: /bin/rm: Argument list too long
Now you should delete the directory and recreate it.
rm -rf wp-content/cache
mkdir wp-content/cache
chmod 777 wp-content/cache
chown apache:apache wp-content/cache
Popularity: 1%


















































