Home
Resources

Cron Macros & Aliases

A list of macros (aliases) for writing common schedules concisely. Each macro behaves the same as the 5-field expression shown below.

MacroEquivalent expressionMeaning
@yearly0 0 1 1 *Runs on January 1 at 00:00
@monthly0 0 1 * *Runs on day 1 of the month at 00:00
@weekly0 0 * * 0Runs on Sunday at 00:00
@daily0 0 * * *Runs at 00:00
@hourly0 * * * *Runs at minute 0 of every hour
@rebootRuns once at system boot.
Macros are standard crontab aliases. They may not be supported in every environment, so to be safe it's better to use the 5-field expression.
Resources

Schedule collection

Copy-and-go recipes

Syntax cheat sheet

The 5 fields and special characters at a glance

Guides

Practical guides to truly understand cron and make fewer mistakes