Empty all log files in log directory

Guide to Empty all log files in log directory

Empty all log files using for loop
for log in /var/log/*; do
     test -f "$log" && > "$log"
done

Finished!

Feel free to report any issue on Issue Tracker https://git.navylinux.org/issue-tracker/general/-/issues

Edit this page