How to Make NANO as the Default Text Editor

vi is a full feature text editor but not everyone like it. Some may prefer to use NANO for quick configuration and crontab edits.

Before that, NANO installed in your system.

To change the Default Text Editor to NANO, edit the file as below

nano /etc/profile.d/nano.sh

add the following 2 lines

export VISUAL="nano"
export EDITOR="nano"

Save it!

The changes made won’t take effect on the current session. Log out and log back in to activate the changes.



0 comments… add one

Leave a Comment