cron 编辑器修改

更改 cron 默认编辑工具 Debian 的 crontab 默认的编辑器是 nano,用起来很不习惯,怎么才能转回 VI 呢? 用如下命令即可:

#update-alternatives --config editor. 

出现如下所示的界面: There are 3 alternatives which provide `editor'. Selection Alternative 1 + * 2 3 /bin/ed /bin/nano /usr/bin/vim.tiny ----------------------------------------------- Press enter to keep the default[*], or type selection number: 然后选择 3 使用/usr/bin/vim 就可以了。

posted @ 2015-10-12 16:50  林锅  阅读(995)  评论(0编辑  收藏  举报