Understanding Unix Crontab Architecture (The 5-Field Standard)
Crontab (cron table) is the time-based job scheduler standard found across Unix, Linux, and macOS environments. A standard cron expression consists of 5 space-separated fields: 1. Minute (0–59) 2. Hour (0–23, 24-hour format) 3. Day of Month (1–31) 4. Month (1–12 or JAN–DEC) 5. Day of Week (0–7, where both 0 and 7 represent Sunday, or SUN–SAT) Each field defines matching temporal constraints that the daemon evaluates every minute to trigger scheduled scripts, database backups, cache updates, and background workers.
┌───────────── Minute (0 - 59)
│ ┌─────────── Hour (0 - 23)
│ │ ┌───────── Day of Month (1 - 31)
│ │ │ ┌─────── Month (1 - 12 or JAN - DEC)
│ │ │ │ ┌───── Day of Week (0 - 7 or SUN - SAT)
│ │ │ │ │
* * * * * (Executes every single minute)