How to Change the Default Editor From Nano on Ubuntu or Linux

2
Many utilities in Ubuntu Linux use a text editor to edit configuration options and files. One example of this is using the crontab command, that allows you to edit your cron jobs using the default editor.
It’s quite easy to set the default editor using the update-alternatives command. Open a terminal and type in the following command:
sudo update-alternatives “config editor
Here is an example of what you’ll see:
$ sudo update-alternatives “config editor
There are 5 alternatives which provide `editor’.
Selection Alternative
“”””””””””””””””
1 /usr/bin/vim
2 /bin/ed*+
3 /bin/nano
4 /usr/bin/vim.basic
5 /usr/bin/vim.tiny
Press enter for keeping the default[*] or type selection number:
You can select the editor you want by just typing in the number. Eg.if you want to change the default editor to vim, you just hit the number 1.
You can test this out by typing in crontab -e to edit your cron file. You will see the editor that you have chosen, instead of the default.
 

Read More Post

STAY CONNECTED

Most Popular

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics
19 Jan

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics

In the ever-evolving world of cosmetic enhancements, there's a constant quest for the next big thing. The latest darling in