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

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

 



> How to clean /var/log/messages file?
> 
> Suneel

Dear Suneel,

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 

It will create a new /var/log/messages file again.

Regards,
Srinivas G

--
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