The default editor generally with linux terminal is vi editor and if you edit crontab etc. it by default opens up using vi editor.
To change this default behavior and set the editor to nano you can use command
export EDITOR=nano
after using this command if you use command to edit the crontab.
crontab -e
This would open in nano instead of vi editor.
This is valid for the current session only.
If you need to make this change permanent for your user on linux you can edit your .bashrc file and the command
export EDITOR=nano
at the end of your file to make the change permanent for your user.
0 Comment(s)