[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” 去編輯自己的例行性命令了,
新聞熱點
疑難解答