OpenBSD : How to nano editor

Hi ,

I like to nano all teh time ,but the vi also good .

Here you go how to add nano editor on OPENBSD

step 1 – Remotely add the nano package
step 2 – Using nano
step 3 – Making nano your default editor in BASH

1. Remotely add the nano package

# pkg_add -v

2. Using nano to edit your hosts file

# nano /etc/hosts

3. Adding an entry to your .bash_profile file

# cd
# echo export EDITOR=nano >> .bash_profile

Having the changes ‘take’ without logging out:

# cd
# source .bash_profile

1 thoughts on “OpenBSD : How to nano editor

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.