37

When trying to copy and paste from the terminal, it doesn't work. I can't use Ctrl + C to copy, and when I select the text with the mouse and right click, no option to copy or cut appears.

I installed Ubuntu 12.04 for the first time a few days ago and maybe it is missing something. Copy and paste does work in LibreOffice.

Zanna
  • 72,312
Syd
  • 401

6 Answers6

39

I hope these shortcuts are useful

  1. Ctrl+Shift+C : copy
  2. Ctrl+Shift+V : paste
  3. Shift+Insert : paste (In some cases, I can't paste data stored in clipboard from Intellij or Netbeans IDE)
  4. Use this tool for copying to clipboard: xclip
Lee Tuan
  • 501
  • 3
  • 6
15

Select the text you want to copy, then go to the place where you want to copy to and press the scroll wheel of the mouse.

This method doesn't require any keyboard shortcut.

MadMike
  • 4,275
  • 8
  • 29
  • 50
RD017
  • 906
10

You can change the defaults in the terminal:

In the terminal window menu you can go to "Edit" --> "Preferences", then the "Shortcuts" tab and select "Copy" and change it to "Ctrl+C", then select "Paste" and change it to "Ctrl+V" (you don't need to type it, just select the box and hit Ctrl and then C).

(this works in Ubuntu 18, I'm not sure about previous versions)

9

You can use Ctrl + Shift + X for cutting the content and Ctrl + Shift + V for pasting.

muru
  • 207,228
BDRSuite
  • 3,196
  • 1
  • 13
  • 11
2

I earlier had this problem in my Ubuntu terminal on windows. Simple right click of the mouse on the desired postion in terminal will do the trick.

2

Select the text which you want to copy and then do right click two times it will paste your text.