Cron Job Expressions, Crontab Syntax & Scheduling Cheat Sheet
Quick lookup guide for the 5-field cron syntax, special character operators (*, /, -, ,), and common schedule recipes.
Table of Contents
Standard 5-Field Crontab Structure
The 5 position fields that define an execution schedule.
| Field Position | Field Name | Allowed Values | Special Characters Allowed |
|---|---|---|---|
| 1 | Minute | 0 - 59 | `*` `,` `-` `/` |
| 2 | Hour | 0 - 23 (24h format) | `*` `,` `-` `/` |
| 3 | Day of Month | 1 - 31 | `*` `,` `-` `/` `L` `W` |
| 4 | Month | 1 - 12 (or JAN-DEC) | `*` `,` `-` `/` |
| 5 | Day of Week | 0 - 7 (0 & 7 are Sunday; or SUN-SAT) | `*` `,` `-` `/` `L` `#` |
Special Operators Decoded
How mathematical symbols alter scheduling rules.
| Symbol | Name | Meaning & Example |
|---|---|---|
| `*` | Asterisk (Wildcard) | Matches every possible value. `* * * * *` runs every single minute. |
| `,` | Comma (List) | Defines an explicit list of values. `15,45 * * * *` runs at minute 15 and 45. |
| `-` | Hyphen (Range) | Specifies an inclusive range. `0 9-17 * * *` runs hourly from 9 AM through 5 PM. |
| `/` | Slash (Step) | Specifies step intervals. `*/15 * * * *` runs every 15 minutes. |
Copy-Paste Production Cron Recipes
Frequently used schedule expressions for servers, CI/CD, and database backups.
*/5 * * * *0 0 * * *0 9 * * 10 1 1 * *Interactive Client-Side Tools for this Guide
Test and run these patterns directly inside your browser with zero server uploads:
Online Cron Expression Generator & Human Explainer
Build cron schedule strings interactively or translate cryptic expressions into plain English. View next estimated runtimes with zero server latency.
Linux Chmod Permissions Calculator & Command Generator
Calculate numerical and symbolic Linux file permissions with an interactive permission matrix. Generate terminal commands without memorizing octal values.
Unix Timestamp Converter (Epoch to Human Date)
Convert seconds and milliseconds epoch timestamps to human-readable datetime formats across all timezones.
Frequently Asked Questions
What time zone does cron use?
Cron executes based on your server's system time zone. In cloud environments (AWS, GCP), servers are almost universally configured to UTC to prevent daylight saving time clock jumps.
How can I build and preview cron schedules interactively?
Use DocSwift's free Cron Generator. Pick intervals using visual dropdowns to generate valid crontab strings with natural language explanations.