nano Simple terminal editor
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
Concepts
- nano file open
- Edit type, cut, paste
- Save confirm name
- Exit
Files and buffers
nano +<line>,<col> <file>
nano -nano -v <file>
Cut, copy, paste
Undo and editing
Search and replace
Navigation
Format and tools
View toggles
Options and nanorc
nano -l <file>
nano -m <file>
nano -i <file>
nano -E -T <n> <file>
nano -B <file>
nano -Y <name> <file>
nano -znano -I <file>
nano -f <rcfile> <file>
nano -/ <file>
| File | Used for |
|---|---|
~/.nanorc |
Per-user settings |
~/.config/nano/nanorc |
Per-user, XDG location |
/etc/nanorc |
System-wide defaults |
Recipes
set linenumbersset mouseset tabsize 4set tabstospacesset autoindentset softwrapinclude "/usr/share/nano/*.nanorc"
nano +42 app.pynano +42,10 app.py# Alt+G jumps once inside
# Alt+R, type the search text, Enter# type the replacement, Enter# A replaces all, Y/N step through
sudoedit /etc/hosts# or: sudo -e /etc/hostsEDITOR=nano sudoedit /etc/hosts



