Skip to content

Instantly share code, notes, and snippets.

@pierdom
Last active September 7, 2017 07:57
Show Gist options
  • Save pierdom/fe10072ea71b02a7a073bd72a03f6466 to your computer and use it in GitHub Desktop.
Save pierdom/fe10072ea71b02a7a073bd72a03f6466 to your computer and use it in GitHub Desktop.
[crontab simple how-to] How to add a cron task with crontab #linux #sysadmin

Editing cron jobs in unix:

crontab -e # edit crontab
crontab -l # list jobs
*    *    *  *    *        command to be executed
-    -    -  -    -
|    |    |  |    |
|    |    |  |    +----- day of week (0 - 6) (Sunday=0)
|    |    |  +------- month (1 - 12)
|    |    +--------- day of        month (1 - 31)
|    +----------- hour (0 - 23)
+------------- min (0 - 59)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment