Linux for Developers
/Intermediate
Cron Jobs
Definition
A time-based job scheduling daemon in Linux. It allows users to automatically execute scripts, commands, or software at highly specific times and dates in the background.
Explain Like I'm New
The ultimate alarm clock. You tell the computer 'Every Tuesday at 3:00 AM, run the backup script while I am sleeping'.
Real World Example
An administrator opens the crontab file using `crontab -e` and writes `0 0 * * * /scripts/daily_cleanup.sh`. Every single night at exactly Midnight, the server automatically deletes temporary garbage files.
Common Use Cases
- •Database backups
- •Log rotation
- •Automated system maintenance
Interview Questions
basic
- What command do you type to edit your personal list of scheduled cron jobs?
intermediate
- Explain the cron syntax `* * * * *`. How often does that run?