December 2018
Beginner
826 pages
22h 54m
English
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 ...