Mailinglist Archive: opensuse-security (685 mails)

< Previous Next >
Re: [suse-security] erase logs
On 11.02.2002 10:31:09, wrote "Roger Rossell" <roger@xxxxxxxxxxx>:

>can I erase /var/log/messages?
>will it log again?

You have to restart syslogd after it

killall -HUP syslogd

But its an better idea to pack this file to another name/location if you need
some audit later :O)

man gzip:

gzip -c file1 > foo.gz new archive
gzip -c file2 >> foo.gz append to archive

Michael Appeldorn





< Previous Next >
References