How to clear log files?

Alexander Dalloz ad+lists at uni-x.org
Tue Jun 7 19:49:35 UTC 2005


Am Di, den 07.06.2005 schrieb Frank Chen um 20:57:

> How do I clear the log files in /var/log?

Please stop hijacking foreign threads. Means, you are replying to former
thread by starting a new topic. You even now double hijacked. Your
question and the other one ("initrd question") are part of "Squirrelmail
and HTTP". Don't wonder if you get no answers.

Why do you want to "clear" the logs? What do you mean with it? You want
to zero the current log files or throw away the rotated (those with
.<number> suffix)?

You may move the old, rotated logs to a different place. If you really
think you need to empty a current log file, then don't simply delete it
but run "> file.log" to zero it.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp 
Serendipity 21:45:16 up 14 days, 20:22, load average: 0.07, 0.11, 0.09 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050607/2769a424/attachment-0001.sig>


More information about the fedora-list mailing list