If you don't need to keep your logs for any specific reason, then you
can just remove them. I use the method:
:>/var/log/syslog
This just removes all content in the log without actually removing the
file. I found it to be very safe.
The other way you could do it was to just remove the files:
rm /var/log/syslog
Then restart the "syslogd" daemon so that the files will be properly
recreated. (c:
Cheers,
_____________________________________________________________________
_ _ _ _
| \ | | \ | | Kevin Lindsay | Powered By Linux!
| \| | \| | NetNation Communications Inc. | Web Hosting Services
| |\ | |\ | http://www.netnation.com/ | Linux Development
|_| \_|_| \_|
| System Administration
On Fri, 2 Oct 1998, Geoff Smith wrote:
>
> All right.
>
> After puzzling and puzzling over what was eating up all my hard-drive
> space, I used Vlad's helpful little command "du" to see where the space
> was being taken up. I found 480/580 MB in /var. A little more sleuthing
> found 400/480MB were in /log. My syslog, kern.log, and and debug are all
> over 100MB each! Can I just delete these files, or what should I do???
>
> thx,
>
> Geoff.
>
>
>