Is there a proper way to clear logs?

Posted by John H. on Server Fault See other posts from Server Fault or by John H.
Published on 2011-06-30T16:13:12Z Indexed on 2011/06/30 16:24 UTC
Read the original article Hit count: 132

Filed under:
|
|

I was wondering if there was a proper way to clear logs in general?

I'm new to Ubuntu and I'm trying to set up Postfix. The log in question is /var/log/mail.log. I was wondering if there was a correct way to clear it, rather than me going in it and deleting all the lines and saving it. I find that sometimes errors don't get written to it immediately after I clear the log and save it.

Side note: I'm having trouble setting up Postfix and am trying to make it easier for me to read the logs hoping it can help me out, instead of having to scroll all the way down.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu