Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: aha!

Vlad Petersen
Sat, 03 Oct 1998 20:52:36 +0000

Vincent Janelle wrote:
>
> killall syslogd klogd, then you can either remote it or back it up, then
> "syslogd && klogd"
>
> If you just erase the file, you'll find out that you'll get a file thats
> 100mb or so.. 100 mb of NULL.

A good alternative method to truncate a big log file without
having to restart its daemon is:

cp -f /dev/null /var/log/big_log

/dev/null is EOF therefore the log becomes empty.