The cron daemon is a background process that runs particular programs at particular times.
ls /etc/cron*
extension of crontab: /etc/cron.d
Not in cron format. These are scripts that run once a dail, hour, etc.
head -11 /etc/crontab
echo "30 8-16 * * * milad updtime >> /home/milad/test" >> /etc/crontab
# system wide, root access, will run by milad
Every 30 Min From 8 Am to 4 PM Every day of month, day of week
crontab -e # user specific cron file
# in top of crontab file will email the command output to milad
MAILTO=milad
crontab -l # shows usere cron file
crontab -r # delete crontab file
/etc/cron.deny # users in this file can't use cron
/etc/cron.allow # if created only users in this file can use cron (NO ONE ELSE)
if both cron.allow and cron.deny files exist the cron.deny is ignored.
queue, examine or delete jobs for later execution
systemctl is-active atd.service
at HH:MM If that time is already past, the next day is assumed.
at midnight, noon, or teatime (4pm)
at now + count time-units
Examples:
at -l : atq
at -d, -r : atrm
at -b : batch
/etc/at.deny # users in this file can't use at
/etc/at.allow # if created only users in this file can use at (NO ONE ELSE)
ipynb
format: https://github.com/ravexina/linux-notes. html
exports of project available at: https://ravexina.github.io/linux-notes.Linux Notes by Milad As (Ravexina) is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.