Bird
0
0

Given the crontab entry 0 0 1 */2 *, when will the job run?

medium📝 Command Output Q5 of 15
Linux CLI - Cron and Scheduling
Given the crontab entry 0 0 1 */2 *, when will the job run?
AAt midnight on the first day of every month
BAt midnight every day in January and February
CAt midnight on the first day of every even month
DAt midnight every two days
Step-by-Step Solution
Solution:
  1. Step 1: Interpret time fields

    Minute=0, Hour=0 means midnight.
  2. Step 2: Interpret day and month fields

    Day=1 means first day of month; Month=*/2 means every 2 months (even months: Feb, Apr, Jun, etc.).
  3. Final Answer:

    At midnight on the first day of every even month -> Option C
  4. Quick Check:

    */2 in month = every 2 months, day=1 = first day [OK]
Quick Trick: */2 in month means every 2 months (even months) [OK]
Common Mistakes:
  • Thinking */2 means every 2 days
  • Ignoring day of month field
  • Assuming runs every day

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes