Linux - How to set default text editor, Change default text editor

How to set default text editor

Change default text editor to vi / pico / nano

In general most of the default text editor in linux will be vi editor. The export command will change your default text editor.

Set Nano as your default editor:
 # export EDITOR="nano -w"

Change Pico as your editor:
 # export EDITOR="pico -w"

change Pico as your editor:
 # export EDITOR="vi"

The above command will change your default text editor to vi /pico or nano. That is what you choose.

The topic on Linux - How to set default text editor is posted by - Math

Hope you have enjoyed, Linux - How to set default text editorThanks for your time

Tech Bluff