⌨️Cron
Also known as Cron Job, crontab, Cron Daemon, Scheduled Job
A tool that runs commands on a plan, like each night at 3.
Think of it like
Think of it like an alarm clock that does a chore when it rings.
Example
Emma wants a backup every night. She adds one line to her crontab, and the backup runs at 3 a.m. each day.
Why it matters
Backups and clean-ups run on their own. No one has to remember them.
Definition
Example code
console
$ crontab -l
0 3 * * * /home/emma/backup.shCommon mistake
Key takeaways
- 1One line per job. A time pattern and a command.
- 2Checks each minute. Runs what is due.
- 3Use full paths. Cron has a bare setup.