I found out that few files seem to pile up in size using this command:
find / -size +50M
Most of them are log files, so I would like to know if it's safe to delete the log files. the log files in question are:
/var/log/httpd/mySite.com-access.log.1
/var/log/httpd/access_log.1
/var/log/httpd/mySite.com-access.log
/var/log/maillog.4.gz
/var/log/maillog
The server os version is: cat /etc/centos-release CentOS release 6.2 (Final)
And if it is ok to delte - how do I do it? Do I just delete the file with rm
, or should I "clear it's contents" by doing for example:
cat /dev/null > access_log.1