Let's learn: logrotate!
Logrotate is a system utility that manages the automatic rotation and compression of log files. logrotate --version man logrotate Configuration can be found generally in two places: /etc/logrotate.conf: contain some default settings, sets up rotation for a few logs that are not owned by any system packages. Also uses an include statement to pull in configuration from any file from the logrotate directory. /etc/logrotate.d: files for packages. By default, logrotate.confwill configure weekly log rotations, with log files owned by the root user and the syslog group....