102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 31


Which of the following commands is used to rotate, compress, and mail system logs?

Show Answer
Correct Answer: A

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.

Discussion

3 comments
Sign in to comment
iwkno6Option: A
Aug 26, 2021

A. literal description from the manpage

Adam_HOption: A
Feb 16, 2023

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

kleverOption: A
Jan 9, 2023

logrotate - rotates, compresses, and mails system logs