Bird
0
0

Identify the error in this cron expression: 60 24 * * *

medium📝 Debug Q14 of 15
Linux CLI - Cron and Scheduling
Identify the error in this cron expression: 60 24 * * *
AMinute value 60 is invalid
BHour value 24 is invalid
CNo error, this is valid syntax
DBoth minute and hour values are invalid
Step-by-Step Solution
Solution:
  1. Step 1: Check minute field validity

    Minute field must be 0-59; 60 is invalid.
  2. Step 2: Check hour field validity

    Hour field must be 0-23; 24 is invalid.
  3. Final Answer:

    Both minute and hour values are invalid -> Option D
  4. Quick Check:

    Minute max 59, hour max 23 [OK]
Quick Trick: Minutes max 59, hours max 23 in cron [OK]
Common Mistakes:
  • Assuming 60 is valid minute
  • Assuming 24 is valid hour
  • Thinking cron allows 24:00 time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes