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 ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/nano-2.0.9.tgz

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

One thought on “OpenBSD : How to nano editor

Leave a Reply

Your email address will not be published.

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