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

Devin BARTON

Devin BARTON

I am an avid Linux lover and open source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries.

4 thoughts on “How to set up Crontab on CentOS 7 Linux

  • Avatar
    September 18, 2020 at 11:10 am
    Permalink

    Thank you. I was wondering how crontab worked under RHEL/Centos 7.

    Reply
  • Avatar
    September 18, 2020 at 11:10 am
    Permalink

    Excellent video. At 2:40 you said quit the file and at 2:45 you said we quit that. what did you do to come to the command line?
    please always explain every key you press.

    Reply

Leave a Reply