命令 crontab

修改定时任务

$ crontab -e
00 23 * * * /user/sbin/logrotate -f /etc/logrotate.d 

 *   *    *   *   *

分 时 日 月 周


#每天23点logrotate读取配置文件 -f:强制执行

* 取值范围内所有数字
/每过多少个数字
- 从X到Z
, 散列数字

查看定时任务

crontab -l

猜你喜欢

转载自www.cnblogs.com/big-ming/p/12697105.html