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://github.com/navy-linux/issue-tracker

Edit this page