1, at---System delay task Launch command
At time
>command---Mission instructions
>ctrl+d---launch a mission
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/9585888818f45f6b19b957d6c25c6b97.png-wh_500x0-wm_3 -wmp_4-s_4246052655.png "style=" Float:none; "title=" screenshot from 2017-11-01 15-18-12.png "alt=" 9585888818f45f6b19b957d6c25c6b97.png-wh_ "/>
AT-L---list delay task ID
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/02/2e35a0c674d1b61055d1aec3b064c702.png-wh_500x0-wm_3 -wmp_4-s_1715536109.png "title=" screenshot from 2017-11-01 15-19-42.png "alt=" 2e35a0c674d1b61055d1aec3b064c702.png-wh_ "/>
At-r ID---Delete change ID task
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/ea7c5c6b84099ba85711b68055dd1b76.png-wh_500x0-wm_3 -wmp_4-s_887618341.png "style=" Float:none; "title=" screenshot from 2017-11-01 15-20-44.png "alt=" Ea7c5c6b84099ba85711b68055dd1b76.png-wh_ "/>
AT-M---to generate messages without output commands
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/ceea5ccf71d2aae0a6d21596aacbe313.png-wh_500x0-wm_3 -wmp_4-s_3121712098.png "style=" Float:none; "title=" screenshot from 2017-11-01 15-34-21.png "alt=" Ceea5ccf71d2aae0a6d21596aacbe313.png-wh_ "/>
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/8eb8556a0d4298cd37dea575ecddc66e.png-wh_500x0-wm_3 -wmp_4-s_3223202548.png "style=" Float:none; "title=" screenshot from 2017-11-01 15-35-05.png "alt=" 8eb8556a0d4298cd37dea575ecddc66e.png-wh_ "/>
AT-M---Let the command with output not produce mail
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/02/bb2a0cca8529549f5452aafb2aeab416.png-wh_500x0-wm_3 -wmp_4-s_2416743837.png "title=" screenshot from 2017-11-01 15-38-12.png "alt=" Bb2a0cca8529549f5452aafb2aeab416.png-wh_ "/>
AT-C ID---View the execution action of this ID delay task
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/02/5c84270e2148be75953c5af22000a8e7.png-wh_500x0-wm_3 -wmp_4-s_4258009940.png "style=" Float:none; "title=" screenshot from 2017-11-01 15-44-51.png "alt=" 5c84270e2148be75953c5af22000a8e7.png-wh_ "/>
The user blacklist is present by default and can be set by modifying the configuration file blacklist
Vim/etc/at.deny---Default is blank and takes effect when the whitelist does not exist
Student---Prohibit student use at command
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/02/d6100aa2f7d9645bb994056e3cbc2138.png-wh_500x0-wm_3 -wmp_4-s_1892411205.png "title=" screenshot from 2017-11-01 18-49-24.png "alt=" D6100aa2f7d9645bb994056e3cbc2138.png-wh_ "/>
The user whitelist does not exist by default in the system and must be established by itself, but when the whitelist is established, only users and root users in the whitelist can execute the AT command, and the blacklist will expire immediately.
Vim/etc/at.allow
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/dd6d4979af800535ba7749dbe09f703f.png-wh_500x0-wm_3 -wmp_4-s_1748932592.png "style=" Float:none; "title=" screenshot from 2017-11-01 18-56-25.png "alt=" Dd6d4979af800535ba7749dbe09f703f.png-wh_ "/>
2, Cron---timed tasks, cron This program is provided by Cron.service, write program time and event is permanently saved
CRONTAB-E---immediate effect
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/02/94c57d6530d1d86c7f5a0c091153084d.png-wh_500x0-wm_3 -wmp_4-s_3459007508.png "style=" Float:none; "title=" screenshot from 2017-11-01 19-30-48.png "alt=" 94c57d6530d1d86c7f5a0c091153084d.png-wh_ "/>
Crontab-l---List the current user's cron tasks
Crontab-r---Delete the current user's cron task 650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/02/28 826f102281bea6ec2ec9d97e917fd7.png-wh_500x0-wm_3-wmp_4-s_3702611923.png "title=" Screenshot from 2017-11-01 19-38-02.png "alt=" 28826f102281bea6ec2ec9d97e917fd7.png-wh_ "/>
Cron Black and white list, the system is only blacklisted by default, when the whitelist blacklist is invalid
/etc/cron.deny
650) this.width=650; "Src=" Https://s2.51cto.com/oss/201711/02/8f0a1485602defe372e249637353828e.png-wh_500x0-wm_3 -wmp_4-s_47640710.png "style=" Float:none; "title=" screenshot from 2017-11-01 19-58-31.png "alt=" 8f0a1485602defe372e249637353828e.png-wh_ "/>
(1) File method definition Crontab
Vim/var/spool/cron/username---Cron with a user name, the file name must match the user name
Time-of-day month-week action
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/02/ba9289cc72210c5d95a93b363ba350ed.png-wh_500x0-wm_3 -wmp_4-s_2162172874.png "style=" Float:none; "title=" screenshot from 2017-11-01 20-12-06.png "alt=" Ba9289cc72210c5d95a93b363ba350ed.png-wh_ "/>
(2) Vim/etc/cron.d/filename---Set up multiple user identities to perform cron
Time-of-day month-week user action
Time-of-day month-week user action
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/02/438f05ea40ed35a4c4269a4102baad3f.png-wh_500x0-wm_3 -wmp_4-s_3049439440.png "title=" screenshot from 2017-11-01 21-07-37.png "alt=" 438f05ea40ed35a4c4269a4102baad3f.png-wh_ "/>
(3) Script mode:
#!/bin/bash
Cat >>/etc/cron.d/westos <<end
* * * * * * Root touch/mnt/{1..2}
* * * * * * Student touch/mnt/file{2..4}
End
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/02/6dae85ad79ee2a830f22a84c2a2a95c1.png-wh_500x0-wm_3 -wmp_4-s_1615924663.png "style=" Float:none; "title=" screenshot from 2017-11-01 21-15-01.png "alt=" 6dae85ad79ee2a830f22a84c2a2a95c1.png-wh_ "/>
View
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/02/164ad979c83d34a4eb430b3c76f9f688.png-wh_500x0-wm_3 -wmp_4-s_2946525561.png "style=" Float:none; "title=" screenshot from 2017-11-01 21-21-35.png "alt=" 164ad979c83d34a4eb430b3c76f9f688.png-wh_ "/>
3. System temporary file Management---cache cleanup
Vim/usr/lib/tmpfiles.d/filename.conf
File type path permissions user, group cleanup cache time
d/mnt/westos/777 Root root 20s
Systemd-tmpfiles--create/usr/lib/tmpfiles.d/*---Create command
Systemd-tmpfiles--clean/usr/lib/tmpfiles.d/*---Execute the command,
In each execution of the command is executed first, in the execution of the second, the time to clean up the cache is 20s, after the file is established to clean up, otherwise invalid, the second picture is changed to 40s, is after 40s can clean, otherwise invalid.
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/02/8b772d55d8985c5020b99b5fb4db404c.png-wh_500x0-wm_3 -wmp_4-s_1497747004.png "style=" Float:none; "title=" screenshot from 2017-11-01 21-24-55.png "alt=" 8b772d55d8985c5020b99b5fb4db404c.png-wh_ "/>
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/02/5396f42e543b44b1cc028da5f72845a7.png-wh_500x0-wm_3 -wmp_4-s_2356069824.png "style=" Float:none; "title=" screenshot from 2017-11-01 21-42-53.png "alt=" 5396f42e543b44b1cc028da5f72845a7.png-wh_ "/>
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/02/0e0684b722e43d6eeb3064ebca57aa01.png-wh_500x0-wm_3 -wmp_4-s_3814468319.png "title=" screenshot from 2017-11-01 21-42-53.png "alt=" 0e0684b722e43d6eeb3064ebca57aa01.png-wh_ "/>
This article is from the "13345576" blog, please be sure to keep this source http://13355576.blog.51cto.com/13345576/1978273
Linux delay and timing operation