Bird
0
0

What will be the output behavior of this crontab entry? 30 6 * * 1-5 /usr/bin/script.sh

medium📝 Command Output Q4 of 15
Linux CLI - Cron and Scheduling
What will be the output behavior of this crontab entry? 30 6 * * 1-5 /usr/bin/script.sh
ARuns at 6:30 PM every weekend (Saturday and Sunday)
BRuns at 6:30 AM every weekday (Monday to Friday)
CRuns every 30 minutes from 6 AM to 6 PM on weekdays
DRuns at 6:00 AM every day except weekends
Step-by-Step Solution
Solution:
  1. Step 1: Analyze time fields

    Minute=30, Hour=6 means 6:30 AM.
  2. Step 2: Analyze day of week field

    1-5 means Monday to Friday (weekdays).
  3. Final Answer:

    Runs at 6:30 AM every weekday (Monday to Friday) -> Option B
  4. Quick Check:

    1-5 = weekdays, 6:30 AM = 30 6 [OK]
Quick Trick: Day of week 1-5 means Monday to Friday [OK]
Common Mistakes:
  • Confusing AM and PM hours
  • Misreading day ranges
  • Assuming runs every 30 minutes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes