Linux_FoundationLinux_Foundation
LFCS · Question #36
LFCS Question #36: Real Exam Question with Answer & Explanation
The correct answer is D: logrotate. The logrotate utility is specifically designed to rotate, compress, and mail system logs to prevent disk space exhaustion.
Submitted by chiamaka_o· Apr 18, 2026Operation of Running Systems
Question
Which of the following commands is used to rotate, compress, and mail system logs?
Options
- Arotatelog
- Bstriplog
- Csyslogd --rotate
- Dlogrotate
- Elogger
Explanation
The logrotate utility is specifically designed to rotate, compress, and mail system logs to prevent disk space exhaustion.
Common mistakes.
- A.
rotatelogis typically part of Apache and specifically rotates Apache access and error logs, not a general system log rotator. - B.
striplogis not a standard command for log rotation, compression, or mailing. - C.
syslogdis the system logging daemon; it doesn't have a--rotateoption for managing log file rotation, which is handled by a separate utility. - E.
loggeris a command used to send messages to the system log, not to rotate or manage existing log files.
Concept tested. Log file rotation and management
Reference. https://manpages.debian.org/testing/logrotate/logrotate.8.en.html
Topics
#log rotation#log management#logrotate command#system maintenance
Community Discussion
No community discussion yet for this question.