linux学习 定时任务(五)

crond 任务调度,定时任务设置

crontab 【选项】
  1.-e 编辑
  2.-l 查询
  3.-r 删除当前用户的所有crontab任务
  4. services crond restart 重启任务调度

eg:
  1. */1 * * * * ls -l /etc/ > /tmp/to.txt 解释:每分钟写入到to.txt中

  cron表达式
  https://www.cnblogs.com/javahr/p/8318728.html

 

posted @ 2019-07-05 23:27  稳不住  阅读(174)  评论(0)    收藏  举报