How to make nano your default editor in Linux

Home > Search > How-to

Use apt-get or yum to install nano.

[john.doe@server1 ~]# apt-get install nano
[john.doe@server1 ~]# yum install nano


In your ~/.bash_profile or ~/.profile file, set EDITOR to nano.

export EDITOR=nano


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter in the box below so that we can be sure you are a human.