Cron Expression Explainer

Translate complex crontab expressions into plain English sentences and calculate upcoming scheduled run times.

Standard Cron Expression (5 Fields)
Minute
0 - 59
Hour
0 - 23
Day (Month)
1 - 31
Month
1 - 12
Day (Week)
0 - 6
Plain English Translation
At minute 0 past hour 9 on weekdays (Monday through Friday)
Minute
0
Hour
9
Day of Month
*
Month
*
Day of Week
1-5

How Unix Crontab Scheduling Syntax Works

Cron is the time-based job scheduler in Unix-like computer operating systems. System administrators and software engineers use cron to schedule background tasks such as database backups, log rotation, email notifications, and health monitoring scripts.

Cron Field Order Reference

* * * * * → (minute) (hour) (day of month) (month) (day of week)
0 0 * * * → Every day at 00:00 (Midnight)
*/15 * * * * → Every 15 minutes
0 9-17 * * 1-5 → Every hour from 9 AM to 5 PM, Mon-Fri

DevOps Engineering Scenarios

  • DevOps & CI/CD Pipeline Triggers

    Understand and verify GitHub Actions, GitLab CI, and Jenkins cron syntax before scheduling resource-heavy nightly builds.

  • Kubernetes CronJob Scheduling

    Ensure batch jobs, database vacuum routines, and cache invalidation workers run at the intended low-traffic server hours.

  • AWS CloudWatch & EventBridge Rules

    Translate scheduled serverless Lambda invocations into clear plain language for non-technical stakeholders.

  • Linux Server Administration & Crontab Audits

    Audit existing legacy `/etc/crontab` files across Linux VPS instances to prevent conflicting automated cron jobs.

Why Use This Cron Explainer

Natural Plain English Translation

Transforms cryptic numbers, asterisks, and slashes into grammatically fluent, understandable sentences.

Next 5 Execution Timestamps

Simulates and displays the upcoming 5 exact dates and times the cron schedule will trigger.

Interactive Field-by-Field Breakdown

Isolates Minute, Hour, Day of Month, Month, and Day of Week into labeled inspection tiles.

Popular Schedule Presets

One-click loading for standard developer schedules like every 5 minutes, daily at midnight, and weekdays at 9 AM.

Frequently Asked Questions

What are the 5 fields of a standard Unix cron expression?

In standard Unix crontab, there are 5 fields separated by spaces: (1) Minute [0-59], (2) Hour [0-23], (3) Day of the Month [1-31], (4) Month of the Year [1-12 or JAN-DEC], and (5) Day of the Week [0-6 or SUN-SAT, where 0 and 7 represent Sunday].

What do special cron characters (*, /, -, ,) mean?

An asterisk (*) matches all values in that field. A comma (,) specifies a discrete list of values (e.g., 1,15). A hyphen (-) defines an inclusive range (e.g., 1-5). A slash (/) specifies step intervals (e.g., */15 means every 15 minutes).

How do you schedule a cron job to run only on weekdays?

To run only Monday through Friday, set the 5th field (Day of the Week) to `1-5`. For example, `0 9 * * 1-5` executes at 9:00 AM every Monday through Friday.

What is the difference between Unix cron and Quartz cron?

Standard Unix cron uses 5 fields. Quartz cron (used in Java enterprise frameworks) adds a 6th field for seconds at the beginning and an optional 7th field for the year at the end.

ARCADE BRAIN BREAK

Need a Brain Break? ☕

Done working on your task? Take a quick 60-second break, test your reflexes, and flap through infinite pixel obstacles in Sky Flap!

Instant Browser Play High Score Tracker