Tag-Archive for » change editor pico «

Sunday, October 12th, 2008 | Author: Angelo

Hello,

Change default text editor on linux server.

A. How to find default text editor of linux machine ? — >> You can determine default editor of linux machine from variable EDITOR.

Following command will show default text editor.
root@server [~]#echo $EDITOR
pico

This means default text editor of your linux machine is pico if you want to change it temporary to vi then simply execute following command.

root@server [~]#EDITOR=vi
In case, you want to change default text editor permanently to emacs then edit /root/.bashrc at the bottom of file add line.
export EDITOR=emacs

To, verify is it changed permanently or not, simply logout and login again and execute command.

root@server [~]#echo $EDITOR
emacs

EDITOR variable contains all capital letter because it is system variable. You can find all system variables and it’s value by command env .

root@server [~]#env
It will show all environment variables (system variables).