nano is the free, open-source terminal text editor built by the GNU Project and shipped by default on nearly every Linux and Unix system. It ranks #11 in real-world editor usage at about 12.2% share โ not because it's powerful, but because it's the one editor guaranteed to be there and usable with zero learning curve.
๐ Quick facts
Type: Terminal text editor
Made by: GNU Project
License: Free, open-source (GPL)
Platforms: Linux, macOS, Unix (pre-installed almost everywhere); Windows via WSL/Git Bash
Primary use case: Quick edits to config files and scripts directly from the command line, especially over SSH
Key features
- No modes โ you type and it inserts text immediately, unlike Vim's Normal/Insert distinction
- On-screen shortcut hints (^X Exit, ^O Save, etc.) shown at the bottom of the screen at all times
- Syntax highlighting for common file types
- Search and replace, line numbers, and undo/redo
- Tiny footprint โ starts instantly, works over the slowest SSH connections
- Pre-installed almost everywhere โ ships by default on nearly every Linux distribution and most Unix systems
Getting started
nano ships pre-installed on most Linux distributions. If it's missing, install it from the command line:
# Ubuntu/Debian
sudo apt install nano
# macOS (Homebrew, if not already present)
brew install nano
Open a file with nano filename.txt, edit like a normal text box, then press Ctrl+O to save and Ctrl+X to exit.
๐ฏ Best for: Anyone editing a config file over SSH who doesn't want to learn Vim's modal commands first โ the default safe choice for a beginner's very first terminal edit.