Linux Fundamentals - $EDITOR variable (default editor)

by
Jeremy Canfield |
Updated: March 20 2020
| Linux Fundamentals articles
The global $EDITOR variable is used to define your default file editor, such as the vi or nano edtiors. You can define your preferred default file editor in your ~/.bash_profile or ~/.profile file, like this.
In this example, programs that are configured to use $EDITOR will use nano as the editor.
export EDITOR=nano
Did you find this article helpful?
If so, consider buying me a coffee over at