Monday, June 18, 2007

Changing default editor for your linux machine

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.

  1. To change your default editor to vi, type:
    • -> export VISUAL=/usr/bin/vi
  2. To make it permanent for current user, add the above line to /home/user/.bash_profile
  3. To make it permanent globally, add the above line to /etc/profile

No comments:

Post a Comment