In Ubuntu the default editor for crontab is Nano.
we can change this by executing the following command:
i.e. sudo update-alternatives –config editor
After executing this command we can see like this
There are 4 alternatives which provide `editor’.
Selection Alternative
———————————————–
1 /usr/bin/vim.tiny
2 /bin/ed
*+ 3 /bin/nano
4 /usr/bin/vim.basic
Press enter to keep the default[*], or type selection number: 1
Now we can select the editor by just typing the corresponding number.
