Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

cron

I'm not aware of an easy way to list information from cron; if you know of one, please write to me and blow my mind.

cron, as we said previously, is a daemon for executing commands on a schedule. It's still in wide use and there's many systems out there with a hybrid systemd timers/cron setup.

By default, cron features the following directories in /etc/:

cron.d/       cron.daily/   cron.hourly/  cron.monthly/ cron.weekly/

Within cron.d, we can see a single file named 0hourly, the contents of which are copied in the following:

cat 0hourly # Run the hourly jobsSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=root01 * * * * root run-parts /etc/cron.hourly

And within the /etc/cron.hourly directory, we have only 0anacron:

#!/bin/sh# Check whether ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content