Cron
Cron is a time-based job scheduler in Unix-like operating systems (like Linux) that automates repetitive tasks by running scripts at specified times or intervals. These scheduled tasks are called "cron jobs," and they are defined in configuration files known as "crontabs". Cron is crucial for system maintenance, backups, sending emails, and other recurring operations, reducing manual effort and ensuring tasks are performed consistently.
How Cron Works
Cron Daemon: A background service called the cron daemon runs constantly on the system.
Crontab Files: The daemon reads configuration files called crontabs, which contain instructions for the cron jobs.
Cron Jobs: Each crontab entry specifies the time or interval for a task, along with the command or script to be executed.
Execution: When the specified time arrives, the cron daemon executes the command in the crontab.