ubuntu 定时任务

使用的系统版本 ubuntu 16.04

lsb_release -a  查看系统版本

 

查看cron 运行状态  

service cron status;
编辑定时任务文件
vim testCrontab
(文件内容 : */1    *    *    *    *    date>>/home/hhx/cron.log)
添加文件到crontab
crontab testCrontab
查看定时任务
crontab -l
删除定时任务
crontab -r

 

posted @ 2017-10-26 14:55  每天多帅一点点  阅读(872)  评论(0编辑  收藏  举报