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.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA