‘crontab’ in Linux with Examples
The crontab is a list of commands that you want to run on a regular schedule, and also the name of the command used to manage that list. Crontab stands for “cron table, ” because it uses the job scheduler cron to execute tasks; cron itself is named after “chronos, ” the Greek word for time.cron is the system process which will automatically perform tasks for you according to a set schedule. The schedule is called the crontab, which is also the name of the program used to edit that schedule.
MIN HOUR DOM MON DOW CMD
Field Description Allowed Value MIN Minute field 0 to 59 HOUR Hour field 0 to 23 DOM Day of Month 1-31 MON Month field 1-12 DOW Day Of Week 0-6 CMD Command Any command to be executed.
30 08 10 06 * /home/maverick/full-backup
* * * * * CMD
00 11, 16 * * * /home/maverick/bin/incremental-backup
*/10 * * * * /home/maverick/check-disk-space
Keyword Equivalent @yearly 0 0 1 1 * @daily 0 0 * * * @hourly 0 * * * * @reboot Run at startup.
@daily /home/maverick/bin/cleanup-logs "day started"