Crontab every Friday at 18:00

crontab5 fields

# every Friday at 18:00

0Minute18Hour*Day of month*Month5Day of week

The cron expression 0 18 * * 5 runs a task every Friday at 18: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

MinuteHourDay of monthMonthDay of week
018**5
exactly 0exactly 18anyanyexactly 5

How often it runs

  • 1 run per week

Run time on those days:

  • 18:00

Check your own expression

Paste any cron expression and we will show what it means and when it runs.

✓ Every Friday at 18:00

Next runs

    Build your own or check a whole crontab →

    FAQ

    How to add 0 18 * * 5 to crontab?

    Open your cron jobs with crontab -e and add the following line, then save the file (the job will run every Friday at 18:00):

    0 18 * * 5 /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.

    How are days of the week written in cron?

    The fifth field is the day of the week: 0 is Sunday (7 also means Sunday), 1 is Monday, 2 is Tuesday and so on up to 6 for Saturday. The range 1-5 means Monday to Friday, and the list 0,6 means Saturday and Sunday.

    Build your own expression in the builder →