课程: Linux CentOS 7: Shells and Processes
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…