-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux nano Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to nano text editor on Linux, covering Arch Linux, CachyOS, and other distributions including installation, basic usage, and configuration.
Arch/CachyOS:
# Install nano
sudo pacman -S nano
# Usually pre-installedDebian/Ubuntu:
sudo apt install nanoFedora:
sudo dnf install nanoStart nano:
# Open file
nano filename.txt
# Create new file
nano newfile.txtnano display:
- Top: File name and status
- Middle: Text area
- Bottom: Command shortcuts
Edit text:
- Type: Start typing
- Move cursor: Arrow keys
- Delete: Backspace or Delete
File operations:
- Ctrl + O: Save (Write Out)
- Ctrl + X: Exit
- Ctrl + S: Save file
Move around:
- Ctrl + A: Beginning of line
- Ctrl + E: End of line
- Ctrl + W: Search
- Ctrl + _: Go to line
Edit commands:
- Ctrl + K: Cut line
- Ctrl + U: Paste
- Ctrl + J: Justify paragraph
- Alt + A: Mark text
Edit config:
# Edit nano config
vim ~/.nanorc
# Or system-wide
sudo vim /etc/nanorcConfiguration:
# Enable line numbers
set linenumbers
# Enable syntax highlighting
include /usr/share/nano/*.nanorc
# Set tab size
set tabsize 4
Check installation:
# Check nano
which nano
nano --version
# Install if missing
sudo pacman -S nanoThis guide covered nano installation, basic usage, and configuration for Arch Linux, CachyOS, and other distributions.
- Text Editors - Text editors
- Vim Guide - Vim editor
-
nano Documentation:
man nano
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.