English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux logrotate command is used to manage log files.
Using the logrotate command, you can easily manage the log files generated by the system. It provides automatic replacement, compression, deletion, and mailing of log files. Each log file can be set to be processed daily, weekly, or monthly, and can also be processed immediately when the file is too large. You must edit the configuration file yourself, and the default configuration file is stored in/In the etc directory, the file name is logrotate.conf.
logrotate [-?dfv][-s <status file>][--usage][Configuration File]
Parameter Description:
Specify the log file
# logrotate /root/log.config