Command to stop all the cron jobs

Hi All,

Please provide the command to stop all the cron jobs.

Thanks in Advance

Regards,
Sindu

Do you mean all cron jobs for all users? Or just the cronjobs for a particular user?

type in

crontab -e

as the user you want to disable crons. Then comment out each line.

To remove a users cron jobs, run this as that user:

> "$HOME/nocronjobs"
crontab "$HOME/nocronjobs"

To stop all cron jobs (as root):

kill $(pgrep cron)

(Note that pgrep is not a standard command.)