Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.05 KB

nano_editor.md

File metadata and controls

37 lines (26 loc) · 1.05 KB

Nano

  1. Check if its installed
Syn: ~/Desktop/test 
$ which nano
/usr/bin/nano
  1. If we just type nano on the terminal we open nano on a buffer which means no file is selected

  2. ^O Write out - Same as save.

  3. This will bring up the save dialog. We can give a file name and press enter.

  4. File is created and saved in the current working directory if no specified location is set.

  5. ^G - Help

  6. Start on line number 2 - $ nano +2 nano-test.txt

  7. View only mode - $ nano -v nano-test.txt

  8. Navigate to specific line - ^W -> ^T enter line#

Search

  1. ^W Where is - This is same as text search.

Cut Copy Paste

  1. ^K Cut - Cuts entire line

  2. ^U Paste - Paste the line

  3. Copy :

    • To select text, press the Ctrl + 6 key combination.
    • You will see "Mark Set" appear at the bottom of the screen as an acknowledgement.
    • Now, use the arrow keys (keys like Home, End, Page Up and Page Down can also be used) to select/highlight text.
    • To copy selected text, press Alt + 6 key combination.
    • Paste is ^U