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.

Linux Job Scheduling 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

Sample result:

 
[[email protected] ~]$ 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!!

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

3 thoughts on “Steps to install crond or crontab on CentOS/RHEL servers, Linux

Leave a Reply

Your email address will not be published. Required fields are marked *