Changing the default editor in Unix/Linux
unix> export EDITOR=pico
In the above example, the default editor is changed from vi to pico. So, the next time we run a program like crontab which uses the default editor, the file will open in pico and not vi.
unix> crontab -e