How to Schedule Jobs with Cron on Linux
Cron is the standard Linux job scheduler. It runs commands or scripts at specified times and intervals.
Open the Crontab Editor
crontab -e
Cron Syntax
# m h dom mon dow command 0 2 * * * /usr/bin/backup.sh
This runs the script every day at 2:00 AM.
Common Examples
# Every 5 minutes */5 * * * * /usr/bin/check.sh # Every Monday at midnight 0 0 * * 1 /usr/bin/weekly.sh
View Scheduled Jobs
crontab -l