LPIC-1 Exam 102 v5 (Linux Administrator) — Question 62
Which of the following commands is used to rotate, compress, and mail system logs?
Answer options
- A. logrotate
- B. striplog
- C. syslogd --rotate
- D. rotatelog
- E. logger
Correct answer: A
Explanation
The correct answer is A, logrotate, which is specifically designed for managing log files by rotating, compressing, and mailing them. The other options, such as striplog, syslogd --rotate, rotatelog, and logger, do not provide the same comprehensive functionality for log management.