← Cheat Sheets
Cron Schedule Syntax
Read and write cron expressions.
# Cron Schedule Syntax
Read and write cron expressions.
```text
┌ minute (0-59)
│ ┌ hour (0-23)
│ │ ┌ day of month (1-31)
│ │ │ ┌ month (1-12)
│ │ │ │ ┌ day of week (0-7, Sun = 0 or 7)
* * * * * command
```
| Expression | Runs |
|---|---|
| `*/5 * * * *` | Every 5 minutes |
| `0 * * * *` | Every hour |
| `0 2 * * *` | Daily at 02:00 |
| `0 9 * * 1-5` | Weekdays at 09:00 |
| `30 3 1 * *` | 1st of the month, 03:30 |
| `@reboot` | At startup |
Symbols: `*` any, `,` list, `-` range, `/` step. Edit with `crontab -e`, list with `crontab -l`.