Bird
0
0

You created a timer file cleanup.timer but it never triggers the service. Which is the most likely mistake?

medium📝 Debug Q14 of 15
Linux CLI - Cron and Scheduling
You created a timer file cleanup.timer but it never triggers the service. Which is the most likely mistake?
AThe timer file is not named exactly like the service file
BThe timer file is missing the <code>[Timer]</code> section
CThe service file <code>cleanup.service</code> is not enabled
DThe timer file uses <code>OnBootSec=</code> instead of <code>OnCalendar=</code>
Step-by-Step Solution
Solution:
  1. Step 1: Check timer and service file naming

    Systemd timers must have matching names with their service files except for the extension.
  2. Step 2: Analyze other options

    Missing [Timer] section causes syntax errors; service enabling is not required for timers to trigger; both OnBootSec and OnCalendar are valid.
  3. Final Answer:

    The timer file is not named exactly like the service file -> Option A
  4. Quick Check:

    Timer and service names must match [OK]
Quick Trick: Timer and service filenames must match except extension [OK]
Common Mistakes:
  • Ignoring filename matching between timer and service
  • Assuming service must be enabled for timer to run
  • Confusing valid timer options as errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes