Changing the default text editor on Linux to Nano.

The default command line text editor in shell on Linux BSD determines what is used when you run commands such as "crontab -e" and this is often not what you want to use. Typically vi/vim is the default text editor.

First make sure Nano is installed by running this command:

yum install nano

While you are there, you might want to download these common tools for CentOS as well:

yum install nano wget curl net-tools lsof bash-completion

We prefer to use Nano which can be enabled with one simple code.

export EDITOR=nano

  • nano, linux default editor, change editor, change default editor, vim
  • 17 Users Found This Useful
Was this answer helpful?

Related Articles

How to flush your DNS cache

Your home computer creates a cache for all DNS settings. It does this to save time each time you...

What is the root login for my new VPS server?

The root login is the same password our system sent you in your welcome email. You just change...

What is the path to PERL?

The path to PERL in PERL script is:#!/usr/local/bin/perl

Do you troubleshoot scripts and apps?

Hello,Sorry, but troubleshooting sripts and apps needs to be done by the scipt maker or a...

How to use PHP-CLI

You would call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you...