Ubuntu – How to copy text from xfce4 terminal emulator to the clipboard

clipboardcommand linecopyxfcexfce4-terminal

I want to be able to select certain text with mouse to copy and paste it to the commandline. The "select" and "paste from clipboard/primary selection" part works, but I am unable to copy the selection to the clipboard (verified with xsel).

So far I have tried:

  • selection (I think it had been working some time ago),
  • Ctrl+Shift+C
  • RMB/Copy
  • Edit/Copy

I use Ubuntu server 14.04.4 and xfce4-terminal 0.6.3

MMB, Shift-Insert and Ctrl+Shift+V works when I populate the clipboard from elsewhere.

The answers to the 4 years old question Why can't I copy text from the Ubuntu Terminal? were not helpful.

Best Answer

You can use clipman to sync selections and paste it anywhere using the middle click of your mouse. Just, select some text, open the terminal, and press the middle click. You can play with the options to adjust it to your preferences. To install clipman, use:

sudo apt-get install xfce4-clipman

Or, if you prefer, install the complete set of utilities for XFCE, using:

sudo apt-get install xfce4-goodies