tutorial centos change default editor vi to pico or nano

do you like vi editor ? many linux user dont like vi editor and they change default editor they use pico editor or nano editor. this tutorial how to change default editor from vi to pico or nano editor on centos.

first we need install editor like pico or nano :

or

I. here is tutorial centos change default editor vi to pico editor
Type the command as follows:

Output:
/usr/bin/pico

Now setup a new text editor:

OR

Add above line to ~/.bashrc file:

Append text as follows:

Close and save the file. There is no no need to reboot system.

Also you can add alias if you want:

 

II. here is tutorial centos change default editor vi to nano editor
Type the command as follows:

Output:
/usr/bin/nano

Now setup a new text editor:

OR

Add above line to ~/.bashrc file:

Append text as follows:

Close and save the file. There is no no need to reboot system.

Also you can add alias if you want:

done, you can choose one pico editor or nano editor, choose one you like.
thats easy tutorial centos switch default editor

Leave a Reply

Your email address will not be published. Required fields are marked *