Which of the following commands is used to rotate, compress, and mail system logs?
Which of the following commands is used to rotate, compress, and mail system logs?
The correct command to rotate, compress, and mail system logs is logrotate. This utility is specifically designed to handle log file management, including moving log files to new names, compressing them, emailing them to the system administrator, and deleting old logs.
A. literal description from the manpage
A is correct "The utility in charge of log rotation (or cycling) is logrotate and its job includes actions such as moving log files to a new name, archiving and/or compressing them, sometimes emailing them to the system administrator and eventually deleting them as they grow old." source: LPIC-1 (102) (Version 5.0), page 299
logrotate - rotates, compresses, and mails system logs