Best Answer: How Do I Find the Default Editor in Linux?
Contents

Where is the default editor in Linux?

The default editor is as defined by the EDITOR , or VISUAL , environment variable(s). to your ~/. bashrc file to set, for example, nano as your default editor. In Ubuntu, there is a generic editor command which is set by the Debian alternatives system.

How do I change the default editor in Linux?

How to set the default text editor in Linux

  1. Log in to your account using SSH.
  2. Open the . bashrc file in your preferred text editor.
  3. Add the following lines to the .bashrc file. …
  4. Save the changes to the . …
  5. To make the new default text editor settings take effect, log out of your account and then log back in.
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest