COMMANDER1.0
← All guides
LEARN / GUIDE

How cron works

Traditional Linux crontab uses minute, hour, day of month, month and day of week. A user crontab follows those fields with a command.

What to remember

If both day fields are restricted, traditional cron matches either field (OR). Timezones and daylight-saving behavior depend on the daemon. % in the command has special meaning even inside shell quotes; escape a literal percent sign.

An example to inspect

*/15 8-20 * * 1-5 /usr/local/bin/check
Try the related tool ↗
Examples target GNU/Linux and Bash. Read your locally installed manual before applying commands to important data.