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 就可以了。

原文地址:https://www.cnblogs.com/linguoguo/p/4872135.html