logrotate
Rotate, compress, and mail system logs. More information: https://manned.org/logrotate.
- Trigger a run manually:
logrotate --force
- Run using a specific command to mail reports:
logrotate --mail
- Run without using a state (lock) file:
logrotate --state /dev/null
- Run and skip the state (lock) file check:
logrotate --skip-state-lock
- Tell
logrotateto log verbose output into the log file:
logrotate --log
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
