Bird
0
0

Which command correctly schedules a task to run every day at 7 AM on Raspberry Pi using cron?

easy📝 Syntax Q3 of 15
Raspberry Pi - Automation and Scheduling
Which command correctly schedules a task to run every day at 7 AM on Raspberry Pi using cron?
A* 7 * * * /home/pi/script.sh
B0 7 * * * /home/pi/script.sh
C7 0 * * * /home/pi/script.sh
D0 0 7 * * /home/pi/script.sh
Step-by-Step Solution
Solution:
  1. Step 1: Understand cron time format and match 7 AM daily schedule

    Cron format is: minute hour day month weekday. "0 7 * * *" means at minute 0, hour 7 every day.
  2. Final Answer:

    0 7 * * * /home/pi/script.sh -> Option B
  3. Quick Check:

    Cron syntax for 7 AM daily = "0 7 * * *" [OK]
Quick Trick: Cron format: minute hour day month weekday [OK]
Common Mistakes:
MISTAKES
  • Swapping hour and minute fields
  • Using wrong day or month positions
  • Misunderstanding asterisk meaning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes