首页 > 系统 > Linux > 正文

浅谈:linux cron 计划任务常用符号小结

2019-10-26 18:47:05
字体:
来源:转载
供稿:网友

 [root@wx-a ~]# crontab --help
crontab: invalid option -- '-'
crontab: usage error: unrecognized option
usage: crontab [-u user] file
crontab [-u user] [ -e | -l | -r ]
(default operation is replace, per 1003.2)
-e (edit user's crontab) 编辑crontab 工作内容
-l (list user's crontab) 查看crontab工作内容
-r (delete user's crontab) 删除所有的crontab任务
-i (prompt before deleting user's crontab)
-s (selinux context)

默认情况下,任何用户只要不被列入/etc/cron.deny 当中,都可以执行”crontab –e” 去编辑自己的例行性命令了,

代表的意义

分钟

小时

日期

月份

数字范围

0-59

0-23

1-31

1-12

0-7

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表