A cron expression is a compact but not always obvious way to write a schedule: a string like */15 * * * * won't mean much until you understand the format. Cron is used in Linux (crontab), CI/CD pipelines, and many task schedulers, and a mistake in a single field can run a job at the wrong time. Let's cover the format and common examples.
The five cron fields
A classic cron expression has five fields in a strict order:
minute hour day of month month day of week
0-59 0-23 1-31 1-12 0-7
Day of week: 0 and 7 both mean Sunday, 1 is Monday, and so on through Saturday (6).
Special characters
*— "any value" (every minute/hour/day, depending on the field).*/N— "every N units," for example*/15in the minute field means every 15 minutes.a-b— a range, for example1-5in the day-of-week field means Monday through Friday.a,b,c— a list of specific values, for example0,30in the minute field means at minute 0 and minute 30 of every hour.