2

How do you copy and paste inside the terminal?

I've tried with Ctrl+C and Ctrl+V; neither works, they just insert ^C or ^V into the prompt. What am I doing wrong?

K7AAY
  • 17,202
Unknown
  • 39

3 Answers3

12

In order to copy and paste in the terminal, you need to include the SHIFT key. For example:

  • Ctrl+Shift+C = Copy
  • Ctrl+Shift+V = Paste

Regular Ctrl+C won't work because the terminal interprets this as cancelling/interrupting an operation.

K7AAY
  • 17,202
Daniel M.
  • 1,903
2

In addition to the above: If you are using an xterm or similar, many terminal programs also support a "quick edit" mode, where selecting text with the mouse automatically copies it (sometimes you have to press enter), and clicking right mouse button inserts at the cursor.

Artur Meinild
  • 26,018
0

Keyboard is the most assured method but if you are slightly more comfortable with mouse click functions then you can 1) highlight the text with the mouse and RT CLICK for copy - and 2) middle mouse button (click wheelie) for paste

CRTLBREAK
  • 101