Cron Expression
0 0 * * 0
Learn how to create a cron expression for 'cron every week'. Runs once a week, Sunday at midnight, with our free cron generator tool.
| Field | Value | Meaning |
|---|---|---|
| Minute | 0 | At minute 0 |
| Hour | 0 | At hour 0 |
| Day of Month | * | Any day |
| Month | * | Any month |
| Day of Week | 0 | Sunday |
This cron expression represents: cron every week
0 0 * * 0
Runs once per week, at midnight on Sunday. Cron has no “every 7 days from now” counter — weekly schedules are expressed by pinning a day of the week, and 0 (Sunday) is the conventional choice. Pick any other day by changing the last field (1 for Monday, 5 for Friday, etc.).
This cron schedule is commonly used for:
crontab -e
0 0 * * 0 /path/to/your/script.sh
@weekly /path/to/script.sh — identical to 0 0 * * 0
0 6 * * 1 /path/to/script.sh
0 0 * * 0 /path/to/script.sh >> /var/log/cron.log 2>&1