moneyslow.com

ubuntu如何更改crontab的默认编辑器nano改为vim

ubuntu 16/18 上安装php7.0/7.1/7.2/7.3/7.4方法

ubuntu 16/18 上安装php7.0/7.1/7.2/7.3/7.4方法

提示: no crontab for root - using an empty one
“ Select a editor ……” 选择编辑器

Selection Path Priority Status

0 /bin/nano 40 auto mode
1 /bin/ed -100 manual mode
2 /bin/nano 40 manual mode
3 /usr/bin/vim.basic 30 manual mode

选择3。

方法一:
update-alternatives --config editor

方法二:
vim /root/.selected_editor

SELECTED_EDITOR="/usr/bin/vim.basic"

Exit mobile version