A cron expression is a compact schedule string that tells a scheduler when to run a job — every night at 2:00, every 15 minutes, weekdays at 9:00, and so on. Most classic Unix-style expressions use five fields: minute, hour, day of month, month, and day of week. Get one field wrong and the job fires hourly instead of daily, or never on the day you expected.
This guide covers each field, special characters (*, /, ,, -), common preset schedules, how to read expressions in plain language, and pitfalls like day-of-month vs day-of-week rules. Build and decode strings with the free cron expression generator while you follow along.
Always confirm which dialect your platform uses (standard 5-field crontab, optional seconds field, AWS-style, Kubernetes CronJob). The ideas below match the widespread 5-field form.