How to specify a editor to open crontab file? “export EDITOR=vi” does not work

后端 未结 8 1877
感情败类
感情败类 2021-01-30 02:56

I\'m using Red Hat Enterprise Linux 5, and I want to set the vim editor to edit the crontab file.

If I run echo $EDITOR, I get vim. But when I run c

8条回答
  •  礼貌的吻别
    2021-01-30 03:25

    You can use below command to open it in VIM editor.

    export VISUAL=vim; crontab -e
    

    Note: Please make sure VIM editor is installed on your server.

提交回复
热议问题