ubuntu下crontab编辑方法的设定

在ubuntu下,首次编辑crontab计划任务的时候,会提示让选择编辑器。
可以重置编辑器,方法如下:
[root@danny2Tomcat2~]# select-editor
Select an editor. To change later, run ‘select-editor’.
1. /bin/ed
2. /bin/nano <—- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny

Choose 1-4 [2]: 3 //选择3即可!

再次编辑crontab,就会进入vim编辑模式了。
[root@danny2Tomcat2~]# crontab -e

猜你喜欢

转载自blog.csdn.net/shuxing520/article/details/80226828
今日推荐