Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy text from nano editor to shell [closed]

Is it possible to copy text from a file, opened with nano, to the shell?

I have a text file, and I want to copy several lines to the console, but I cannot find a keyboard shortcut to copy the text.

like image 636
manuel Avatar asked May 28 '15 12:05

manuel


People also ask

How do I copy from nano editor to Notepad?

If you have a file open in nano in a putty window, you will have to turn off mouse support (Alt-M will toggle). After that, you can select text in nano with the left mouse drag. Then left-click on the selected text to copy it to the windows clipboard. Anywhere you can now paste that clipboard text with a right-click.


1 Answers

Nano to Shell:

1. Using mouse to mark the text.

2. Right-Click the mouse in the Shell.

Within Nano:

1. CTRL+6 (or CTRL+Shift+6 or hold Shift and move cursor) for Mark Set and mark what you want (the end could do some extra help).

2. ALT+6 for copying the marked text.

3. CTRL+u at the place you want to paste.

or

1. CTRL+6 (or CTRL+Shift+6 or hold Shift and move cursor) for Mark Set and mark what you want (the end could do some extra help).

2. CTRL+k for cutting what you want to copy

3. CTRL+u for pasting what you have just cut because you just want to copy.

4. CTRL+u at the place you want to paste.

like image 118
Trevor Avatar answered Oct 12 '22 23:10

Trevor