Crontab once a year, on January 1 at 0:00
# once a year, on January 1 at 0:00
0Minute0Hour1Day of month1Month*Day of week
@yearlyThe cron expression 0 0 1 1 * runs a task once a year, on January 1 at 0:00. A crontab line has five fields: minute, hour, day of month, month and day of week. Copy the ready expression with the button above and paste it into your crontab.
Expression fields
| Minute | Hour | Day of month | Month | Day of week |
|---|---|---|---|---|
0 | 0 | 1 | 1 | * |
| exactly 0 | exactly 0 | exactly 1 | exactly 1 | any |
How often it runs
- 1 run per year
Run time on those days:
- 00:00
Check your own expression
Paste any cron expression and we will show what it means and when it runs.
✓ Once a year, on January 1 at 0:00
Next runs
FAQ
How to add 0 0 1 1 * to crontab?
Open your cron jobs with crontab -e and add the following line, then save the file (the job will run once a year, on January 1 at 0:00):
0 0 1 1 * /path/to/script.sh
What time does cron use?
Cron uses the server time. If the job is tied to an exact time, make sure the server timezone is set correctly.
Is there a shorthand for 0 0 1 1 *?
Yes: @yearly. It is the same schedule as 0 0 1 1 *. The common Linux cron implementations (cronie, Vixie cron) understand it, but not every scheduler does — in cloud services the full five-field form is the safer choice.
Build your own expression in the builder →