From the course: Linux CentOS 7: Shells and Processes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reccuring system jobs using cron

Reccuring system jobs using cron - Linux Tutorial

From the course: Linux CentOS 7: Shells and Processes

Start my 1-month free trial

Reccuring system jobs using cron

- [Narrator] A recurring system task is not tied to a user and is run by the operating system. The format of a system cron job is the same as a user cron job. For more information on the cron job format, please refer to the video in this course on recurring user tasks. Cron support is installed by default. If cron is not installed on your machine, use yum to install it by typing into a terminal sudo space yum space install space dash y space cronie space crontabs and hit Enter. Type in your password and hit Enter again. We also want to ensure the cron service is running. Type in sudo space systemctl space start space crond and hit Enter. To ensure cron starts at boot, type in sudo space systemctl space enable space crond and hit Enter. System cron jobs are stored in /etc/cron.d. To create a cron job, we'll need to create a new file inside this directory. Since we're creating a system cron job, we'll need to elevate privileges with sudo. Type in sudo space vi space…

Contents