Linux Mastery

The Human Knowledge Project


Appendix B — Linux Editing Tools


Purpose of This Appendix

Throughout Linux Mastery you have used text editors to create files, edit configuration settings, write shell scripts, and prepare documents.

Linux offers a wide variety of editors, each designed for different workflows.

This appendix introduces several of the most common editors and explains when each is most appropriate.


Choosing an Editor

No single editor is "best."

Instead, Linux users typically choose an editor based on:

Many experienced users become comfortable with several editors rather than relying on only one.


B.1 — Nano

Nano is a simple terminal-based text editor.

Launch Nano:


nano filename

Nano is widely recommended for beginners because:

Common keyboard shortcuts:

| Command | Action |

|---------|--------|

| Ctrl+O | Save |

| Ctrl+X | Exit |

| Ctrl+K | Cut current line |

| Ctrl+U | Paste |

| Ctrl+W | Search |

| Ctrl+G | Help |

Nano is an excellent choice for:


B.2 — Vim

Vim is one of the most powerful text editors available.

Launch Vim:


vim filename

Unlike Nano, Vim uses different operating modes.

The three most common are:

Useful commands:

| Command | Action |

|---------|--------|

| i | Enter Insert mode |

| Esc | Return to Normal mode |

| :w | Save |

| :q | Quit |

| :wq | Save and quit |

| :q! | Quit without saving |

Vim has a steeper learning curve but offers exceptional speed and flexibility once mastered.

Many experienced Linux administrators use Vim as their primary editor.


B.3 — Xed

Xed is the default graphical text editor included with Linux Mint.

Launch:


xed filename

Xed resembles editors such as Notepad.

It is well suited for:

Advantages include:

Xed edits Markdown as plain text and does not display formatted output.


B.4 — Visual Studio Code

Visual Studio Code (VS Code) is a modern programming editor.

It includes features such as:

VS Code is commonly used for:

It has become one of the world's most popular development environments.


B.5 — LibreOffice Writer

LibreOffice Writer is a full-featured word processor.

Unlike plain-text editors, Writer supports:

Writer is well suited for:

Although Linux users often work with plain text, traditional word processors remain useful for formal publications.


Why Linux Provides Many Editors

Linux emphasizes:

Different editors excel at different tasks.

For example:

Rather than forcing users into a single application, Linux allows each person to choose the tools that best fit their workflow.


Editor Comparison

| Editor | Interface | Best For |

|---------|-----------|----------|

| Nano | Terminal | Beginners, quick edits |

| Vim | Terminal | Advanced editing, administration |

| Xed | Graphical | General text editing |

| VS Code | Graphical | Programming and scripting |

| LibreOffice Writer | Graphical | Documents and manuals |


Recommendations

If you are new to Linux:

  1. Learn Nano first.
  2. Become comfortable with Xed for everyday editing.
  3. Explore VS Code if you plan to write software.
  4. Gradually learn Vim as your Linux experience grows.

Each editor has strengths, and learning more than one will make you a more versatile Linux user.