Courseiva
Administrative TasksmediumMultiple ChoiceObjective-mapped

LPIC-1 Administrative Tasks Practice Question

Which configuration file is the primary configuration file for logrotate?

⚠ Common exam trap

A common mix-up: candidates confuse the directory /etc/logrotate.d/ (which holds supplementary configs) with the primary configuration file /etc/logrotate.conf, or mistake /etc/rsyslog.conf (a logging daemon config) for logrotate's config.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

/etc/logrotate.conf

The primary configuration file for logrotate is /etc/logrotate.conf. This file sets global options such as rotation frequency, compression, and the number of rotated logs to keep. It also includes configuration snippets from /etc/logrotate.d/ via an include directive, but the main control file is /etc/logrotate.conf.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • /var/log/messages

    Why it's wrong here

    A log file, not a configuration file.

  • /etc/logrotate.d/

    Why it's wrong here

    This is a directory containing additional configuration snippets, not the primary file.

  • /etc/logrotate.conf

    Why this is correct

    The main configuration file for logrotate.

  • /etc/rsyslog.conf

    Why it's wrong here

    Configuration for rsyslog, not logrotate.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.