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

相关文章:

  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2021-04-27
猜你喜欢
  • 2021-11-23
  • 2021-12-05
  • 2021-08-13
  • 2022-03-08
  • 2021-07-17
  • 2021-08-23
相关资源
相似解决方案