Bird
0
0

What will happen if you add this cron job?

medium📝 Predict Output Q4 of 15
Raspberry Pi - Automation and Scheduling
What will happen if you add this cron job?
0 6 * * 1 /home/pi/script.sh
ARuns script.sh every Monday at 6:00 AM
BRuns script.sh every day at 6:00 AM
CRuns script.sh every Monday at 6:00 PM
DRuns script.sh every hour on Monday
Step-by-Step Solution
Solution:
  1. Step 1: Interpret the cron time fields

    Minute is 0, hour is 6, day and month are *, weekday is 1 (Monday).
  2. Step 2: Understand the schedule meaning

    This means the script runs at 6:00 AM every Monday.
  3. Final Answer:

    Runs script.sh every Monday at 6:00 AM -> Option A
  4. Quick Check:

    Weekday 1 = Monday, hour 6 = 6 AM [OK]
Quick Trick: Weekday 1 means Monday in cron [OK]
Common Mistakes:
MISTAKES
  • Confusing AM and PM
  • Assuming it runs daily
  • Misreading weekday number

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes