> explain --cron
> explain --cron "
"
Examples:
Presets:
[Result will appear here]
What is a Cron Expression?
A cron expression is a string with 5 time fields that define a schedule:
┌──────────── Minute (0 - 59)
│ ┌────────── Hour (0 - 23)
│ │ ┌──────── Day of month (1 - 31)
│ │ │ ┌────── Month (1 - 12)
│ │ │ │ ┌──── Day of week (0 - 6) (Sunday = 0)
│ │ │ │ │
* * * * * command-to-execute
Examples:
0 12 * * * → every day at noon
0 0 1 * * → on the 1st of every month
*/15 9-17 * * 1-5 → every 15 minutes during business hours (Mon–Fri)
To schedule a cron job on a Linux/Unix system:
$ crontab -e
Then add your line at the bottom, for example:
$ crontab -e 0 9 * * 1-5 /path/to/your/script.sh