CertGrid CertGrid
Hands-on Lab·LPIC-1

Scheduling jobs with cron and systemd timers

Objective 107.2 names both cron and systemd timers, and on a current distribution the maintenance jobs have largely moved to timers. This guide writes a user crontab, finds where it is stored, reads the system crontab's extra field, and then shows the timer that does the same job with a schedule you can ask systemd to explain.

102: Administrative Tasks Guide 17 of 33 Beginner

One Debian-family host. The demo account and group are created and removed inside the capture; the account's password is locked and never set.
Server NameIP AddressOSRolesCPURAMHDD
LPIC1-A01192.168.0.76Ubuntu 26.04 LTSDebian-family host - dpkg and apt, which objective 102.4 names2 Core4 GB50 GB

This guide includes

Use this because the objective names both mechanisms. This matters because the system crontab has one more field than a user's - the difference that gets asked about.

Before you start

  1. A user crontab, and where it actually lives

  2. The system crontab has one more field

  3. What the machine actually schedules today

  4. Ask systemd when a schedule fires

Official sources