Steps to install crond or crontab on CentOS/RHEL servers, Linux
The daemon crond is pre-installed in almost all Linux/Unix servers. In some rare situations, we need to install it manually on our servers. Here I’m going to explain the steps to install cron daemon on CentOS and RHEL servers.
We all know ‘What is crond?’ and its importance in servers. The daemon crond is using for job scheduling.
Crontab is the program used to install, remove or list the tables used to drive the cron daemon. Cronjobs are predefined jobs which are running periodically according to the settings we have done previously.
In the /etc folder there is a file called crontab where we can write the command or name of the script that is to be executed at as per our customized time. You can refer the link pasted below to schedule jobs using crontab.
How to check whether it’s already installed on the server?
Yeah.. This is important to check if it’s installed, before going to start the installation steps. We can check this by using the following commands:
rpm -qa|grep cron
[firstname.lastname@example.org ~]$ rpm -qa|grep cron crontabs-1.11-6.20121102git.el7.noarch cronie-anacron-1.4.11-14.el7_2.1.x86_64 cronie-1.4.11-14.el7_2.1.x86_64
Installation steps – for CentOS/RHEL 6 and 7 servers
The installation of Cron daemon is simple through shell. In this article, I’m explaining the steps to install Cron daemon on CentOS/RHEL 6 and 7 server. Try the commands and live like a master!!