Bird
0
0

What does the cron expression 0 12 * * * do?

easy📝 Conceptual Q1 of 15
Linux CLI - Cron and Scheduling
What does the cron expression 0 12 * * * do?
ARuns a job every hour at minute 12
BRuns a job every day at 12:00 PM (noon)
CRuns a job every 12 minutes
DRuns a job every 12 hours
Step-by-Step Solution
Solution:
  1. Step 1: Understand the cron fields

    The fields are: minute, hour, day of month, month, day of week. Here, minute=0, hour=12, others are * (any).
  2. Step 2: Interpret the expression

    This means the job runs when minute is 0 and hour is 12, every day, every month, any day of week.
  3. Final Answer:

    Runs a job every day at 12:00 PM (noon) -> Option B
  4. Quick Check:

    Cron expression meaning = Runs daily at noon [OK]
Quick Trick: Minute and hour fields define exact time, * means every [OK]
Common Mistakes:
  • Confusing hour and minute fields
  • Thinking * means no run
  • Mixing day of week and day of month

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes