Bird
0
0

What does the cron expression 0 0 1 1 * schedule?

medium📝 Command Output Q5 of 15
Linux CLI - Cron and Scheduling
What does the cron expression 0 0 1 1 * schedule?
ARuns every 1st day of every month at midnight
BRuns at midnight on January 1st every year
CRuns every January at midnight
DRuns every day at midnight
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the fields

    Minute=0, hour=0, day of month=1, month=1 (January), day of week=* (any).
  2. Step 2: Understand the schedule

    The job runs at 00:00 (midnight) on January 1st every year.
  3. Final Answer:

    Runs at midnight on January 1st every year -> Option B
  4. Quick Check:

    Month=1 means January, day=1 means first day [OK]
Quick Trick: Month=1 means January, day=1 means first day [OK]
Common Mistakes:
  • Thinking it runs every day
  • Confusing month and day fields
  • Ignoring day of week field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes