Skip to main content

Command Palette

Search for a command to run...

Some basic commands for using the nano text editor:

Published
2 min read
Some basic commands for using the nano text editor:
M

A passionate learner, who loves to learn new things in this tech world.

Here are some basic commands for using the nano text editor:

Opening and Navigating Files

  • Open a file: nano filename

  • Move cursor: Use the arrow keys.

  • Go to a specific line and column: Ctrl + _, then enter the line and column number.

Editing Text

  • Insert text: Simply start typing to insert text at the cursor's position.

  • Cut (delete) text:

    • Cut the entire line: Ctrl + K

    • Cut selected text: Ctrl + 6 to start marking, then move the cursor and use Ctrl + K.

  • Copy (add to buffer):

    • Mark text with Ctrl + 6, move the cursor, then copy with Alt + 6.
  • Paste: Ctrl + U

Saving and Exiting

  • Save file: Ctrl + O, then press Enter to confirm.

  • Exit nano: Ctrl + X

Searching

  • Search for text: Ctrl + W, type the text, and press Enter.

  • Find next occurrence: Ctrl + W then press Enter again.

  • Search and replace: Ctrl + \, enter the search term, then the replacement term, and press Enter.

Undo and Redo

  • Undo: Alt + U

  • Redo: Alt + E

Display Help

  • View help menu: Ctrl + G

These commands cover most basic editing tasks in nano. Nano also has a built-in guide at the bottom that lists common shortcuts.

More from this blog

PDCA cycle for Continuous improvement in our life

Continuous improvement এর জন্য PDCA (Plan-Do-Check-Act) cycle টি আমাদের জীবনের যেকোনো লক্ষ্য বা জীবনের উন্নতির ক্ষেত্রে অত্যন্ত গুরুত্বপূর্ণ। এর মাধ্যমে আমরা ধারাবাহিকভাবে সমস্যা সমাধান, লক্ষ্য অর্জন এবং কার্যক্ষমতা বৃদ্ধি করতে পারি। এই প্রক্রিয়াটির ...

Nov 10, 20242 min read
PDCA  cycle for Continuous improvement   in our life

Masum Kazi

5 posts