How Do I Stop a Cron Job in Linux?
Contents How Do I Stop a Cron Job? How to Remove a Crontab File Remove the Crontab File. $ Crontab -R [ Username ] Where Username Specifies the Name of the...
Contents
How do I stop a cron job?
How to Remove a crontab File
- Remove the crontab file. $ crontab -r [ username ] where username specifies the name of the user’s account for which you want to remove a crontab file. …
- Verify that the crontab file has been removed. # ls /var/spool/cron/crontabs.
Must Read
How do I turn off cron Sendmail?
Disable cron emails using “>/dev/null 2>&1”
- > = redirect.
- 2>&1 = redirects stderr (standard errors) and stdout (standard output).
- -s = forwards the output to system log.
- -m off = disables cron emails.
- Related reading: Enable Automatic Updates – Fedora/Red Hat/CentOS + Bonus Tip.