Cron is a work timer that is used in Unix-like computer operating systems. Developers can use cron for jobs that need to be run regularly at specific times, dates, or intervals. Briefly, the main idea behind using cronjob is automating system maintenance or management.
Cron is one of the most appropriate solutions for planning repetitive tasks. Cron is managed by a configuration file that specifies shell commands for a crontab (cron table) to run periodically in a particular program. Crontab files are stored where work lists and other instructions given to the cron daemon are stored. Users can have their own individual crontab files and are usually only found in the cron files or /etc subdirectory.
The syntax for each line is a cron expression consisting of five fields, followed by a shell command to execute.
For example, assuming the following cron default shell is compatible...