Bird
0
0

Which of the following is the correct syntax to enable a systemd timer named backup.timer?

easy📝 Syntax Q12 of 15
Linux CLI - Cron and Scheduling
Which of the following is the correct syntax to enable a systemd timer named backup.timer?
Asystemctl enable backup.timer
Bsystemctl start backup.timer
Csystemctl run backup.timer
Dsystemctl activate backup.timer
Step-by-Step Solution
Solution:
  1. Step 1: Identify enabling command for systemd timers

    The command systemctl enable sets a timer to start automatically on boot.
  2. Step 2: Differentiate from other commands

    start runs the timer immediately but does not enable it; run and activate are invalid commands.
  3. Final Answer:

    systemctl enable backup.timer -> Option A
  4. Quick Check:

    Enable timer = systemctl enable [OK]
Quick Trick: Use 'enable' to start timer on boot, 'start' to run now [OK]
Common Mistakes:
  • Using 'start' instead of 'enable' to auto-run timers
  • Using invalid commands like 'run' or 'activate'
  • Confusing service commands with timer commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes