I want to open a crontab file using nano editor instead of using vim editor when I run this command "crontab -e". I am not familiar with vim editor, I tried to remember its commands but could not do more.
I want to open a crontab file using nano editor instead of using vim editor when I run this command "crontab -e". I am not familiar with vim editor, I tried to remember its commands but could not do more.
I do not use permanent solution and I prefer temporary command.
Type:
export EDITOR=nano
And then type crontab -e - It will open in nano editor.
I created a alias command, Means instead of typing "export EDITOR=", I created my own alias command and I type only "ex" (without quota) and then I can open cron file in nano editor. You can do this same.