So we know that the fifth column in crontab means day of the week. But what day is considered as 1? What is considered the first day of the week? Is it Sunday or Monday?
- 1FYI I think the reason for the downvotes on your question is because it's something that's easily searchable; a search for "crontab day of week" actually turns up this SO question from 2013 that explains it perfectly.Doktor J– Doktor J2017-07-24 19:36:57 +00:00Commented Jul 24, 2017 at 19:36
Add a comment |
1 Answer
Sunday is 0, Monday is 1, etc.
http://man7.org/linux/man-pages/man5/crontab.5.html
The time and date fields are: field allowed values ----- -------------- ... day of week 0-7 (0 or 7 is Sunday, or use names)