Remove all log files debian centos
-
Do not just delete all the log files!!!
There are systems which require files to be present.
cd /var/log
for CLEAN in $(find /var/log/ -type f) do cp /dev/null $CLEAN done
Logs will be deleted permanently, files will be left behind.
This method does not solve the problem, it simply removes the comments within the log files.