cron -h

Cron expression examples


Common crontab schedules and what they actually mean. Pick one to open it in the interpreter.

Expression Means
* * * * * Every minute
*/5 * * * * Every 5 minutes
*/10 * * * * Every 10 minutes
*/15 * * * * Every 15 minutes
*/20 * * * * Every 20 minutes
*/30 * * * * Every 30 minutes
0 * * * * Every hour, on the hour
30 * * * * Every hour at :30
0 */2 * * * Every 2 hours
0 */3 * * * Every 3 hours
0 */4 * * * Every 4 hours
0 */6 * * * Every 6 hours
0 */8 * * * Every 8 hours
0 */12 * * * Every 12 hours
0 9-17 * * * Every hour from 9:00 AM to 5:00 PM
30 9-17 * * MON-FRI Every hour from 9:30 AM to 5:30 PM, on weekdays
*/15 */2 * * * Every 15 minutes, during even-numbered hours
*/15 9-17 * * * Every 15 minutes from 9:00 AM to 5:45 PM
0 0 * * * Every day at 12:00 AM
0 6 * * * Every day at 6:00 AM
0 9 * * * Every day at 9:00 AM
0 12 * * * Every day at 12:00 PM
0 18 * * * Every day at 6:00 PM
30 23 * * * Every day at 11:30 PM
0 0 * * 0 Every Sunday at 12:00 AM
0 3 * * 0 Every Sunday at 3:00 AM
0 9 * * MON-FRI Every weekday at 9:00 AM
30 8 * * SAT,SUN Every weekend at 8:30 AM
0 22 * * 1-5 Every weekday at 10:00 PM
0 3 * * 1,3,5 Every Monday, Wednesday, and Friday at 3:00 AM
0 0 1 * * Every month on the 1st at 12:00 AM
0 0 15 * * Every month on the 15th at 12:00 AM
15 14 1 * * Every month on the 1st at 2:15 PM
0 0 1 1 * Every year on January 1 at 12:00 AM
0 0 1,15 * * Every month on the 1st and 15th at 12:00 AM
5 0 * 8 * Every day in August at 12:05 AM
0 0 13 * FRI Every month on the 13th at 12:00 AM, and also every Friday at 12:00 AM — cron runs this when either matches, not only when both do
*/7 * * * * Every 7 minutes from :00 to :56 of each hour, then again at :00 of the next
0 */5 * * * Every 5 hours from 12:00 AM to 8:00 PM each day, then again the next day
5-59/15 * * * * Every 15 minutes, starting at :05
@reboot Once at system startup
@hourly Every hour, on the hour
@daily Every day at 12:00 AM
@weekly Every Sunday at 12:00 AM
@monthly Every month on the 1st at 12:00 AM
@yearly Every year on January 1 at 12:00 AM

Open the interpreter