Skip to Content

Change Default Crontab Editor

The default crontab editor is nano on some systems. This is a pain. You can change the crontab editor by setting the EDITOR environment variable.

In BASH:  

export EDITOR=/usr/bin/vi

In some system, you alse need to set variable VISUAL to vim:

export VISUAL=/usr/bin/vi

-- EOF-TRUEVUE --

评论

发表新评论

此内容将保密,不会被其他人看见。