Cron job Every Tuesday
0 0 * * 2
minute
hour
day (month)
month
day (week)
At 12:00 AM, only on Tuesday
Field breakdown
| Field | Value | Meaning |
|---|---|---|
| minute | 0 | at minute 0 |
| hour | 0 | at hour 0:00 |
| day (month) | * | any value |
| month | * | any value |
| day (week) | 2 | on Tuesday |
Crontab line
0 0 * * 2 /path/to/script.shThe expression 0 0 * * 2 schedules a cron job to run every tuesday. This schedule belongs to the "Day" category and is a popular choice for daily maintenance routines, backup operations, or recurring tasks tied to specific days of the week.