Docs / Linux Basics / How to Use the nano Text Editor

How to Use the nano Text Editor

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 92 views · 1 min read

nano is a beginner-friendly text editor available on most Linux systems.

Open a File

nano filename.txt

Key Shortcuts

  • Ctrl+O — Save (Write Out)
  • Ctrl+X — Exit
  • Ctrl+K — Cut line
  • Ctrl+U — Paste line
  • Ctrl+W — Search
  • Ctrl+G — Help
  • Alt+U — Undo

Tips

  • The bottom of the screen shows available shortcuts
  • ^ means Ctrl key
  • Use nano -l to show line numbers

Was this article helpful?