I'm quite new to linux, and was wondering what is the best way to empty / archive a log file.
The file in question is /var/log/messages
mv /var/log/messages /var/log/messages.archive.07-09-2004
touch /var/log/messages to create new empty log file
but now nothing is being written to the logfile! How can I fix this and how should I have done it?