ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
# crontab 定时任务 ## 简单使用 ```vim // 每分钟执行一次 * * * * * myCommand // 每小时第3和第15分钟执行 3,15 * * * * myCommand // 上午8点到11点, 第3和第15分钟执行 3,15 8-11 * * * myCommand // 每隔两天, 上午8点到11点, 第3和第15分钟执行 3,15 8-11 */2 * * myCommand // 每周一, 上午8点到11点, 第3和第15分钟执行 3,15 8-11 * * 1 myCommand // 每晚21:30 执行 30 21 * * * myCommand // 每小时执行 * */1 * * * myCommand // 每星期六晚上11:00执行 0 23 * * 6 myCommand // 每周六周日 1:10 执行 10 1 * * 6,0 /etc/init.d/smb restart ``` **参考:** - [Linux Tools Quick Tutorial](https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/crontab.html)