我希望在用crontab -e编辑Crontab时有语法着色。我跟着这回答。在设置变量EDITOR=vim并导出它之后,crontab -e现在显示了我想要的语法颜色。我正在编辑Crontab作为我自己的用户,而不是使用Sudo。Press ENTER or type command to continue/home
Crontab在亚马逊EC2 Linux服务器上不起作用。我将以下代码保存在/etc/crontab文件中# For details see man 4 crontabs # .-command to be executed
* 10 * * * tar cvfpz /home/backup/web_$(date +%Y%m%d).tar.gz /home/