Portal Home > Knowledgebase > Articles Database > Delete files in /var/log ?
Delete files in /var/log ?
Posted by GazCBG, 08-03-2007, 12:02 PM |
Hi,
I am currently freeing up some space on my VPS and want to know if it ok for me to delete the following files in: /var/log/
apf_log.3
apf_log.4
boot.log.3
boot.log.4
cron.3
cron.4
exim_mainlog.3.gz
exim_mainlog.4.gz
exim_paniclog
exim_paniclog.3.gz
exim_paniclog.4.gz
exim_rejectlog.3.gz
exim_rejectlog.4.gz
maillog.3
maillog.4
messages.3
messages.4
rpmpkgs.3
rpmpkgs.4
secure.3
secure.4
spooler.3
spooler.4
Regards,
Garry
|
Posted by FirmbIT, 08-03-2007, 02:09 PM |
Yes you can, those are just backups of the original log files.
|
Posted by MaximSupport, 08-03-2007, 11:59 PM |
Dear GarryUK,
Yes, you can delete them they are rotated log files. You can use following command.
rm -f /var/log/*.[0-4]
or
rm /var/log/*.{1,2,3,4}
Best Regards.
Last edited by MaximSupport; 08-04-2007 at 12:02 AM.
|
Add to Favourites Print this Article
Also Read