Cron vs Anacron
0 0 * * *Every day at 12:00 AM
Next 10 Executions
Times shown in UTC
- Tue, May 19, 202600:00
- Wed, May 20, 202600:00
- Thu, May 21, 202600:00
- Fri, May 22, 202600:00
- Sat, May 23, 202600:00
- Sun, May 24, 202600:00
- Mon, May 25, 202600:00
- Tue, May 26, 202600:00
- Wed, May 27, 202600:00
- Thu, May 28, 202600:00
Field Breakdown
00***About This Schedule
The key difference between cron and anacron is what happens when the computer is off. Cron skips any jobs that were scheduled while the system was down — they're simply missed. Anacron tracks when jobs last ran and executes missed jobs when the system comes back up.
Cron: precise timing (minute-level), requires the system to be running at the scheduled time, works with any frequency. Anacron: daily or less frequent only (no minute/hour scheduling), catches up on missed runs, designed for machines that aren't always on (laptops, desktops).
Use cron for: servers that run 24/7, jobs that need precise timing (e.g., every 5 minutes), sub-daily schedules. Use anacron for: laptops/desktops, daily/weekly/monthly maintenance tasks, situations where it's more important that a job runs eventually than that it runs at an exact time. Many Linux distributions use anacron for /etc/cron.daily/, /etc/cron.weekly/, and /etc/cron.monthly/ scripts.