Crontab -e : My editor in linux is wrong : How can I change editors?
Why is the default editor for my crontab nano? I don't like nano. It makes me cranky! Give me vi back....
a.k.a. :
How do I change my default crontab editor?
crontab -e change default to pico
I don't know vi, how do I change the program that edits my crontab to something else?
Type the following at the shell (my servername is dop3y):
dop3y# set | grep VISUAL
VISUAL=nano
dop3y# export VISUAL=/bin/vi
dop3y# set | grep VISUAL
VISUAL=/bin/vi
_=VISUAL
SUCCESS!!
If you have a problem finding the full path of your editor program execute this command:
dop3y# which vi
/bin/vi
dop3y# which nano
/usr/bin/nano
The Variable for the editor may also be 'EDITOR' so keep this in mind in case the 'VISUAL' var doesn't work.