Bird
0
0

Which of the following is a valid crontab entry to run a job at 5:00 PM every Friday?

easy📝 Syntax Q3 of 15
Linux CLI - Cron and Scheduling
Which of the following is a valid crontab entry to run a job at 5:00 PM every Friday?
A17 0 * * 5
B0 17 * * 5
C0 5 * * 6
D5 0 * * 4
Step-by-Step Solution
Solution:
  1. Step 1: Identify time and day fields

    5:00 PM means minute=0, hour=17 (24-hour format). Friday is day of week=5.
  2. Step 2: Match fields to options

    0 17 * * 5 matches minute=0, hour=17, day of week=5 correctly.
  3. Final Answer:

    0 17 * * 5 -> Option B
  4. Quick Check:

    5 PM Friday = 0 17 * * 5 [OK]
Quick Trick: Hour is 24-hour format; Friday is 5 in day of week [OK]
Common Mistakes:
  • Mixing hour and minute positions
  • Using 12-hour format without conversion
  • Wrong day of week number

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes