📝 Nano Editor (Linux / Unix)

Nano is a super simple, beginner-friendly terminal text editor.

🔹 How to open nano

nano filename

Example:

nano test.txt
  • If test.txt exists โ†’ it opens
  • If not โ†’ nano creates it

🔹 Nano screen layout

  • Top โ†’ File name
  • Middle โ†’ Text area (where you type)
  • Bottom โ†’ Shortcut keys (very helpful!)

^ means Ctrl
Example: ^O = Ctrl + O


🔹 Most useful nano commands

ActionShortcut
Save fileCtrl + O โ†’ Enter
Exit nanoCtrl + X
Cut lineCtrl + K
PasteCtrl + U
SearchCtrl + W
Go to lineCtrl + _
UndoAlt + U
RedoAlt + E

🔹 Example workflow

nano notes.txt
  1. Type your text ✍️
  2. Press Ctrl + O โ†’ Enter (save)
  3. Press Ctrl + X (exit)

🔹 Why people like nano

✅ Easy to learn
✅ No modes (unlike vi)
✅ Commands always visible
✅ Perfect for beginners & quick edits

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *