From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)

Unlock the full course today

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

Manage reccuring user jobs with cron

Manage reccuring user jobs with cron

- [Instructor] At jobs are one-time jobs that run at a specific time. Often we want to create recurring jobs that run every hour, day, week, or month. In order to do this we'll use the cron service. A cron job is stored in a cron table or a crontab. There are two types of crontabs, one for users and one for the system. Let's talk about user crontabs. User crontabs are specific to each user so every user has one. They can be managed by a normal user. There's no need to elevate privileges for a user to manage their own cron jobs. They're stored in /var/spool/cron/<the username>. The other type of crontab is the system crontab. System cron jobs are system-wide so they run by their OS, not users. Being that they're system-wide, the super user has to manage them. System cron jobs are stored in /etc/cron.d. No matter whether you're setting a user cron job or the system-wide cron job, the format is the same. The first…

Contents