Tuesday , 24 January 2017
Home » Linux Basics » How to install cron (crond, crontab) in CentOS

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

About admin

I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.