On Tuesday, September 29, 1998 9:07 AM, Bernardo Carvalho
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi,
> 
> My /var/log/wtmp file is a bit large and I want to reset it... from
the man
> pages I figured that if I delete it it won't be automatically created
again.
> What should I do?

You could do something like

tail -20 /var/log/wtmp > /var/log/wtmp

That will effectively "chop off" all but the last 20 lines of the file.


> 
> The /var/log/xferlog is also a bit big. Is it the same situation?
> 
> []s
> bernardo
>
------------------------------------------------------------------------
---
> Bernardo Carvalho = Web Designer = [EMAIL PROTECTED]
> ICQ # 2136776 = http://wwp.mirabilis.com/2136776
> http://www.tnt.com.br/~nailbomb
>
------------------------------------------------------------------------
---
> "There's only one thing that I can do:
>  ding a ding dang my dang a long ling long"
> 

Reply via email to