Below are the steps to be taken to change your default editor. Usually for Ubuntu, the default editor is pico and for Centos is vi.
- To change your default editor to vi, type:
- -> export VISUAL=/usr/bin/vi
- To make it permanent for current user, add the above line to /home/user/.bash_profile
- To make it permanent globally, add the above line to /etc/profile
No comments:
Post a Comment