Last updated: April 12, 2026
Cron Syntax Cheatsheet
Quick Answer
A cron expression has 5 fields: minute (0-59), hour (0-23), day of month (1-31), month (1-12), day of week (0-7). Use * for any, */n for intervals, and comma-separated values for lists.
Common Patterns
| Command | Description |
|---|---|
| * * * * * | Every minute |
| */5 * * * * | Every 5 minutes |
| */15 * * * * | Every 15 minutes |
| 0 * * * * | Every hour (at minute 0) |
| 0 */2 * * * | Every 2 hours |
| 0 0 * * * | Every day at midnight |
| 0 9 * * * | Every day at 9:00 AM |
| 0 9 * * 1-5 | Weekdays at 9:00 AM (Mon-Fri) |
| 0 0 * * 0 | Every Sunday at midnight |
| 0 0 1 * * | First day of every month at midnight |
| 0 0 1 1 * | January 1st at midnight (yearly) |
| 30 4 * * * | Every day at 4:30 AM |
Special Characters
| Command | Description |
|---|---|
| * | Field: matches any value |
| , | Field: list separator (e.g., 1,3,5) 0 9 * * 1,3,5 = Mon, Wed, Fri at 9 AM |
| - | Field: range (e.g., 1-5) 0 9 * * 1-5 = Mon through Fri at 9 AM |
| / | Field: step/interval (e.g., */10) */10 * * * * = every 10 minutes |
Shortcuts
| Command | Description |
|---|---|
| @yearly or @annually | Shortcut: run once a year (0 0 1 1 *) |
| @monthly | Shortcut: run once a month (0 0 1 * *) |
| @weekly | Shortcut: run once a week (0 0 * * 0) |
| @daily or @midnight | Shortcut: run once a day (0 0 * * *) |
Frequently Asked Questions
More Cheatsheets
Git Commands Cheatsheet
This cheatsheet covers the 40 most essential Git commands grouped by workflow: setup, staging, branc...
Docker Commands Cheatsheet
This cheatsheet covers 35 essential Docker commands for managing containers, images, volumes, and ne...
Linux Commands Cheatsheet
This cheatsheet covers 40 essential Linux/Unix commands for daily development: file navigation, text...
HTTP Status Codes Cheatsheet
HTTP status codes are 3-digit numbers returned by servers. 1xx = informational, 2xx = success, 3xx =...