at/crontab

at

yum -y install at
systemctl start atd

增加任务

增加任务的第三行是 是ctrl+D 表示的是退出
第四行是系统提示任务执行的时间

任务查询
atq

任务删除
atrm + 任务id

at 时间格式

at 00:00 2019-10-01

cron

systemctl start crond
定时任务
-e 进入编辑模式
-l 显示所有的定时任务
-r 清空所有的定时任务

格式

posted @ 2019-09-08 10:37  π=3.1415926  阅读(112)  评论(0编辑  收藏  举报