Subject: Re: Log...
To: Bill Studenmund <wrstuden@loki.stanford.edu>
From: Mike Ekholm <ekholm@skypoint.com>
List: port-mac68k
Date: 04/03/1997 19:45:53
On Thu, 3 Apr 1997, Bill Studenmund wrote:

> > 
> > 	Hi,
> > 	Just a little two, How can i erase this file: ?
> > 
> > 	/var/log/
> > 	-rw-r--r--   1 root  wheel  3371580 Apr  3 18:54 wtmp
> > 	It is growing...
> 
> cat /dev/null > /var/log/wtmp
> 
> You can't just erase it as the system probably has it open, and
> will keep the file until all the users have closed it. By copying
> "nothing" over it, you clear it out now. Otherwise you'd have to
> reboot to get the space back.
> 
you could also make a symbolic link of /dev/null, for /var/log/wtmp

--
            ekholm@skypoint.com | http://www.skypoint.com/~ekholm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      "All I ask for is a T1 to my house, is that too much to ask for?"