Crontab overview
What is crontab
Crontab is a toll to schedule commands. You can run your terminal command on a specific schedule like run a command every day or every weekends.
Basic command
crontab [-u user] {-l | -e | -r}
command | utility |
---|---|
-l | list your cron job |
-r | remove your cron job |
-e | edit your cron job |
-u | specific a user |
How to schedule a command
Cron job looks like:
|
|
symbol | meaning |
---|---|
* | any value |
, | value list separator |
- | range of value |
/ | step values |
crontab.guru
crontab.guru which is a website to check whether your schedule is correct.
Reference
Thanks Corey Schafer’s video