cron Cheat Sheet
Schedule recurring jobs with crontab — the five-field syntax every operator still reaches for.
Core DevOps3 sections · 22 commands
⌘K
Managing Jobs
5crontab -eEdit your crontab
crontab -lList your cron jobs
crontab -rRemove all of your cron jobs
crontab -u USER -lList another user's jobs (root)
crontab FILEInstall a crontab from a file
The Five-Field Syntax
12* * * * * CMDEvery minute
*/15 * * * * CMDEvery 15 minutes
0 * * * * CMDTop of every hour
0 0 * * * CMDDaily at midnight
0 2 * * 1 CMD2:00 AM on Mondays
0 4 1 * * CMD4:00 AM on the 1st of the month
30 3 * * 1-5 CMDWeekdays at 3:30 AM
0 */6 * * * CMDEvery 6 hours
15,45 * * * * CMDAt minute 15 and 45
@reboot CMDOnce at boot
@daily CMDShorthand for 0 0 * * *
@weekday CMDMonday–Friday at midnight
Logging & Debugging
50 1 * * * /path/script.sh >> /var/log/job.log 2>&1Capture output and errors
MAILTO=""Suppress emailed output
grep CRON /var/log/syslogFind when jobs ran
systemctl status cronIs cron even running
which CMD && echo okVerify the binary exists (PATH is limited)