linux定时任务设定的方式

第一个种:编辑crontab配置文件

vim /etc/crontab

在文件里面直接添加即可

第二种:直接用命令查看,编辑

查看 : crontab -l

编辑 : crontab -e

usage: crontab [-u user] file
crontab [-u user] [ -e | -l | -r ]
(default operation is replace, per 1003.2)
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
-i (prompt before deleting user's crontab)
-s (selinux context)

专注
原文地址:https://www.cnblogs.com/jimmyTang-J/p/11387977.html