Delay and timing mechanism of the third Unit system
1.at delay
at time
at> Action
At>ctrl +d
at> <EOT>
at-l
ATRM task number
when an action is executed with output
The output is sent to the initiator of the task in the form of a message
at user's black and white list
/etc/at.deny # #默认存在并生效
/etc/at.allow # #默认不存在. Once present, the/etc/at.deny fails
# # # #2. Recurring tasks
Command mode initiated:
crontab-u username-e
mm hh dd mm WW
MM/2 # #每隔两分钟
HH1-HH2 # #多少点到多少点
HH1,HH2 # #多少点和多少点
crontab-l # #查看
crotab-u usename-r # #删除
The way the file originated
vim/etc/cron.d/filename
mm hh dd mm WW usename action
echo ' mm HH dd mm WW usename action ' >/etc/cron.d/filename
Black and white list
/etc/cron.deny
/etc/cron.allow
3. Management of temporary system files
vim/usr/lib/tmpfiles.d/*.conf
type filename permusergrouptime
d/mnt/westos1777rootroot10s
systemd-tmpfiles--create/usr/lib/tmpfiles.d/*
systemd-tmpfiles--clean/usr/lib/tmpfiles.d/*
This article from the "12147236" blog, reproduced please contact the author!
"Linux Rookie 2" System timing delay task