use nano as crontab editor

This is a small tip, I like to use, as normally in recently installed Linux, vi is used as the default editor instead of vim or nano.

So, How to change the default crontab editor to vim or nano?

To change to vim or nano just run:

export EDITOR="/usr/bin/vim" ; crontab -e 

that is for vim, or.

export EDITOR="/usr/bin/nano" ; crontab -e 

OK, you are now ready to work with your favorite text editor, instead of the default.