Temporarily Disabling a Cron Job
Comment the line out with a # at the start — the fastest way to pause one job without losing it. To disable everything, back up the crontab to a file and reinstall it later. Both are fully reversible.
Comment out one job
Run crontab -e and add # at the start of the line:
# 0 * * * * /opt/app/job.sh
Cron ignores commented lines. Remove the # to re-enable.
Disable all jobs, keep a backup
crontab -l > ~/crontab.bak then crontab -r removes them. Restore with crontab ~/crontab.bak.
Disable another user's job
Same idea with -u: sudo crontab -u www-data -e and comment the line, or back up with crontab -u www-data -l.
FAQ
How do I temporarily disable a cron job?
Run crontab -e and put a # at the start of the line. Cron skips commented lines; remove the # to re-enable.
How do I disable all cron jobs but keep them?
Back up with crontab -l > ~/crontab.bak, then crontab -r to clear. Restore later with crontab ~/crontab.bak.
Does commenting a cron line delete it?
No. The line stays in the crontab, just ignored. It's fully reversible by removing the #.