Friday, February 15, 2008

Shell 1- A script to clean up the log files in /var/log

# Cleanup
# Run as root, of course.
cd /var/log
cat /dev/null > messages
cat /dev/null > wtmp
echo "Logs cleaned up."

1 comment:

hackingtom said...

Really nice script. Sure I will try with a slight modifications. Will comment the modified version after that.