Change & Set the Default crontab Editor

For a one time edit, launch the terminal and type:

#EDITOR=nano crontab -e

If you want to set nano as your default editor in general, you use this command:

#export EDITOR=nano

Now when you go to edit crontab, nano will be the default editor than vi. You can test this by typing:

#crontab -e

Looking beyond Mac OS X, this should work in Linux as well.

Leave a comment