How to install cron (crond, crontab) in CentOS


Cron is a daemon that can be used to schedule the execution of recurring tasks according to a combination of the time, day of the month, month, day of the week, and week.

This is how I install crond onto my CentOS server edition as it doesn’t seem to come preinstalled, this might not be true for other distributions and the following command may not work for all distributions.

yum -y install vixie-cron crontabs
/sbin/chkconfig crond on
/sbin/service crond start

If do not like vi as your default crontab editor, you have the option of changing the default editor. See our post How to Change & Set the Default crontab Editor

Originally posted 2016-01-20 16:48:57.


Please enter your comment!
Please enter your name here