文章目录 一、添加定时任务二、如何查看定时任务 一、添加定时任务 [root@localhost !]# crontab -e #进入 crontab 编辑界面。会打开Vim编辑你的任务 * * * * * 执行的任务 # 举个例子(每10min执行脚本) */10 * * * * /etc/profile;/bin/sh sh xxx.sh */10 * * * * /etc/profile;/bin/sh sh xxx.sh >> xxx/xxx/text(绝对地址) 保存返回 crontab:installint new crontab则表示保存成功 二、如何查看定时任务 crontab -l