Change the default crontab editor
This is something that I recently come across and I thought that a tiny tutorial is needed here.
CentOS 5.x comes with vi as the default editor so when you run:
crontab -e
“Vi” is the editor that opens up.
I personally don’t like it and I wanted to change it to the good old nano.
If you are in the same situation here is the simple command that will change your default OS editor.
export VISUAL=’pico -w’
Now when you run:
crontab -e
Nano will open up.
Hope it helps !
If you enjoyed this post, make sure you subscribe to my RSS feed!
- June 27th

















thanks! now i can use my faveroute editor for crontab: vim !!!!!!!