Bash Clean log files
Clean log files in /var/log
# Cleanup Script
# Run as root
cd /var/log
cat /dev/null > messages
cat /dev/null > wtmp
echo "Logs cleaned."
# Cleanup Script
# Run as root
cd /var/log
cat /dev/null > messages
cat /dev/null > wtmp
echo "Logs cleaned."