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.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can 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