Re: how to clean the /var/log/messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> The following procedure will work in the Red Hat Linux only.
> First your delete the file using the rm command.
> 
> #rm /var/log/messages
> 
> Then you should run the following messages to create    it again with
> empty file.
> 
> #service syslog restart

The only part that is Red-Hat specific is the "service syslog
restart". It would've been better to say that you can safely delete
the /var/log/messages file and restart syslogd and leave it to the OP
to figure out how to restart the daemon on his machine. There are
smart answers too, like smart questions :-).

K.

-- 
There are things known and things unknown, in between lie the Doors

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux