Linux serverNETWORK ADMINISTRATIONS

How to set up Crontab on CentOS 7 Linux

This short video will show you how to set up cron jobs on CentOS 7.

Cron is the task scheduler in Linux

Although the Linux distro in this tutorial is CentOS 7, this tutorial should work on most versions of Linux.

We first set up a script that will allow us to test cron.

We then enter cron by running crontab -e.

We then tell cron to run the script every minute of everyday to see if output is generated.

The cron test script, along with the cron examples are available from here:

How to set up Crontab on CentOs7 Linux

And the Cron website that was shown in the tutorial can be found here:

https://crontab.guru

If you encounter any difficulty while following along to this tutorial please do comment below 🙂

source

centos 7

Leave a Reply

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