Skip to content


Emptying a log in Linux

Often deleting a log file while it’s in use result in program misbehavior. To bypass this, simply empty the log file using a command like:

echo > /var/log/auth.log

(of course, replace with your own path to the file you want to empty).

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

I’m painfully aware that KeyCaptcha suddenly vanished, and at the worst moment of course. I’ll look into acceptable replacements when able. In the meantime, as before, if you want you can still send me your comment via e-mail and I’ll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA