Linux 101 : Logs and disk space
We could erase the content of these files using the below command:
We could also change the settings of the "logrotate" in the following files "/etc/logrotate.conf" and "/etc/logrotate.d/" so that the rotated logs will be compressed.
Remark:
Log rotation is a system that allows files to be compressed, renamed and ultimately deleted after their retention period is up.
Comments
Post a Comment