Skip to content

Instantly share code, notes, and snippets.

@nielsvanderbeke
Created October 7, 2013 09:40
Show Gist options
  • Save nielsvanderbeke/6865207 to your computer and use it in GitHub Desktop.
Save nielsvanderbeke/6865207 to your computer and use it in GitHub Desktop.
crontab syntax
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
An example of crontab format with commented fields is as follows:
# Minute Hour Day of Month Month Day of Week Command
# (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat)
0 2 12 * 0,6 /usr/bin/find
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment