Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For ages I've been using Putty when working with *nix servers, and I really got used to it's copy&paste method: select, left-click - for copy, just right-click - for paste.

How can I set Ubuntu terminal the same way? I see there is a shortcuts configuration, but it does not allow me to set keys I need. Ctrl+Shift+C, Ctrl+Shift+V is just braking my fingers.

I know there is a menu on right-click, but I don't need it.

share|improve this question
Is there a reason why you do not install Putty in Ubuntu and just that instead of terminal? – Rinzwind May 15 '11 at 0:31
Great idea - just tried, but it didn't worked. Basically, keys are different under linux, and it does not copy on left mouse, and does not insert on right. In fact I haven't found any way to copy/paste on putty in Linux at all :-D – BarsMonster May 15 '11 at 0:40
I have tried the putty under ubuntu and looks awful. Keys are also not same as the windows putty. – Abhijeet May 15 '11 at 5:52
very strange... because whenever I have used Ubuntu ... this copy paste stuff is there by browser ..everywhere – abhishek Dec 21 '11 at 16:18

I'm used to that feature too, that's why I use Ubuntu. All you need to do is open the terminal and type ssh

For mega-fast copy-and-paste:

  • Select text to Copy
  • Middle-click to Paste
    • Middle-click is the mouse wheel click (or both mouse buttons)

It works with any selectable text in the OS: in the terminal, browser, ...

share|improve this answer
+1 Please note, however, by doing this mega-fast copy-and-paste, copied text is not copied to clipboard. Basically, you can do mouse copy-pasting while your clipboard holds a result of recent Ctrl+C. – Andrejs Cainikovs Dec 21 '11 at 16:49
+1 but I struggled to interpret this answer. The difference between PuTTY and the Ubuntu terminal is that you use Middle-click instead of Right-click to paste. – Waylon Flinn Oct 11 '12 at 15:34
Note that this does not work between virtual machines because it doesn't use the clipboard buffer. For this reason I stick to PuTTY and avoid the GUI terminal in my VMs. – Will Bickford Mar 25 '13 at 18:35
Thanks a lot :) – suyash Mar 18 '14 at 7:14

Ubuntu terminal (gnome-terminal) has this feature. It just uses Middle-click to paste instead of Right-click.

In summary:

  • Select the text to copy
  • Middle-click where you want to paste it
share|improve this answer

This is solved using either one of 2 methods:

  1. Using PuTTY linux version:

    Clicking in both Touchpad buttons I simulated the middle button. Since using Linux Mint distro, I had not this middle button simulation activated.

    (The latest version of evdev, version 2.5, changed the default for the middle mouse button emulation code. This change has disabled emulation of the middle mouse button by clicking the left and right mouse buttons) I needed to enable it manually:

    Enabling the middle mouse button emulation adding this to xorg.conf snippet:

        Section "InputClass"
           Identifier "middle button emulation class"
           MatchIsPointer "on"
           Option "Emulate3Buttons" "on"
  2. Using PuTTY Windows version:

    (I prefer this method since I do not need to change distro setting like Xorg, only Wine settings in order to connect to console serial ports):

    Since Wine handles com ports by having a link to the device (ie /dev/ttyUSB0), in the ~/.wine/dosdevices folder, this link would be created as follows, in order to update your wine profile configs:

    ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1

    I prefer this second method, since the copy paste works always, do not need the middle button simulation and, the sherry in the top of the cake, it NEVER hangs (occasionally PuTTY for Windows hangs on some winXP installations).

    Otherwise, in case you do not need/want to install wine, the first method is preferable.

share|improve this answer

Even the LeftClick+RightClick can be used to paste the selected text anywhere in Ubuntu. Though, the "Copy" by simple selection is possible in the terminal only, the LeftClick+RightClick "Paste" works just fine everywhere in the OS, eg:text-editors.

This makes it useful while working with touch-pads on laptop when a mouse is not around.

So in the end the gnome terminal works almost like putty, just with the exception of a simultaneous Left+Right Click for "Paste" rather than a Right Click.

share|improve this answer

I know I'm way over the time to answer this question, but I've liked the plain old xterm for this behaviour. It works just like that on my machine(TM).

EDIT: I just found out that putty was modelled after xterm. Here the document.

share|improve this answer

I had the same issues using Ubuntu 14.10 and earlier: Unix style copy paste in the terminal not working. Disappointing default settings. However, here is a solution (partly resembling a wrap up of my predecessors):

2) To fix the terminal issue I successfully put the following lines into my xorg.conf: (see if /etc/X11/xorg.conf is suitable for you. May be different for Lubuntu etc.)

Section "InputClass"

   Identifier "middle button emulation class"

   MatchIsPointer "on"

   Option "Emulate3Buttons" "on"


1) The very anoying malfunction of a missing 3rd mouse button (touch pad, Marble Mouse) can actually be fixed with the "gpointing-device-settings". Just install using CLI with apt-get install gpointing-device-settings. Then invoke gpointing-device-settings to get the gui window.

Probably some steps need a sudo or root access. I assume you know.

However, now I can use the unixish copy paste by mark and middle mouse button. At least in terminal. And for the Marble Mouse there is a separate article with a lot of config details.

Hope it helps.

share|improve this answer

Can't help with setting it up like Putty, but an easier mouse way than Ctrl+Shift+C, Ctrl+Shift+V or menu is select Alt+Middle-button = copy and Middle-button = paste

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.