On Tue, 12 Dec 2000, Wolfgang Pfeiffer wrote:
> Reply to message from Mikkel L. Ellertson on Tue, 12 Dec 2000, 14:30 <-0600>:
>
>
> Mikkel,
>
> Thanks for fast answer.
> I have just 4K in /var/tmp -- but I will not forget to have an eye on it
> from time to time.
> I'll delete the files in /usr/src/redhat/BUILD and
> /usr/src/redhat/SOURCES.
>
> But I just saw, I have more than 6100K in /var/log ...
>
> so is it OK to do a
> rm -rf /var/log/*
>
> ??
>
> (I'm simply not sure whether Linux will recreate new files like the ones
> already there now during next reboot .... :))
>
> Thanks in anticipation.
> Wolfgang
>
> --
> http://www.geocities.com/wolfgangpfeiffer/
>
>
You are better off using logrotate to trim the log files. If you just
delete them, you will not free any space untill you restart the services
that are writing to the files. This is because programs like syslog and
httpd will have the files open for writting, and will keep writting to the
files. The system will not delete the files untill the programs that have
them open close the files.
One way you can clear the log files without restarting programs is to do
something like "cat /dev/null > [log file]". This will erase the file
contence but leave it open so that more log entries can be added.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list