Bird
0
0

Find the mistake in this crontab line: 15 25 * * 1 /home/user/script.sh

medium📝 Debug Q7 of 15
Linux CLI - Cron and Scheduling
Find the mistake in this crontab line: 15 25 * * 1 /home/user/script.sh
AHour field cannot be 25
BMinute field cannot be 15
CDay of week cannot be 1
DCommand path is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Check hour field range

    Hour must be 0-23; 25 is invalid.
  2. Step 2: Verify other fields

    Minute=15 and day of week=1 are valid; command path looks valid.
  3. Final Answer:

    Hour field cannot be 25 -> Option A
  4. Quick Check:

    Hour max is 23, 25 is invalid [OK]
Quick Trick: Hour values must be 0-23, not above [OK]
Common Mistakes:
  • Assuming hour can be 24 or more
  • Confusing minute and hour fields
  • Ignoring field value limits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes