nerdexam
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. rotatelog is typically part of Apache and specifically rotates Apache access and error logs, not a general system log rotator.
  • B. striplog is not a standard command for log rotation, compression, or mailing.
  • C. syslogd is the system logging daemon; it doesn't have a --rotate option for managing log file rotation, which is handled by a separate utility.
  • E. logger is 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.

Full LFCS PracticeBrowse All LFCS Questions