Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
Can not paste into terminal

How can I paste clipboard contents into terminal without having to right click then press the "Paste" menu item? Ctrl-V doesn't work here!

share|improve this question
add comment

marked as duplicate by Stefano Palazzo, karthick87, Jorge Castro, Marco Ceppi Dec 20 '10 at 14:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5 Answers

Middle-click, Shift+Ins, or Shift+Ctrl+V.

share|improve this answer
    
I like the Shift+Ctrl+V, because I don't want to use the mouse and slow down my work. –  Rafid Dec 20 '10 at 10:52
    
You have no idea how I can agree with the above statement. I also am a fan of keyboard, trying to stay away from the mouse. As i am typing with two-finger, not like a typist, I hate to have to move between keyboard and mouse. –  jfmessier Dec 20 '10 at 12:30
add comment

If you have highlighted the commands you want to paste you van just middle click on the terminal. Usually the scroll wheel works as a middle button, or as on most notebooks you can click both buttons at once.

share|improve this answer
add comment

You may want to try out xclip tool.

You can learn more about it by reading its man page or this blog post. I am using cp2clip and clippaste scripts that are explained there.

share|improve this answer
add comment

The X Windows system uses 2 clipboards...

The middle-click "clipboard" is entirely independant of the "Cntrl+Shift+C/V" clipboard..

The middle-click one uses what is called the "primary selection"..

The Cntrl+Shift+C/V one, uses what is called teh "clipbard selection"...
... It is just the "normal" Cntrl+C/V in (most?) other applications...

Thc "primary" (old terminology, I suppose) acts only on the most recently selected (and it must be currently selected) text, whereas the "clipboard selection" is actually stored in a seperate buffer (called the clipboard buffer) ...

Some programs don't handle these buffers properly, but moves are afoot to fix this.
eg... When you close Firefox, you will lose any "clipobard" text which was copied from Firefox... so if your clipboard text goes missing, this is the most likely reason...

This dual clipboard is not limited to the terminal. You can center-click in another application and it will paste the currently selected text from the most recently selected text (and that may be in another window)

share|improve this answer
add comment
  • To paste clipboard contents into Terminal press Shift+Ctrl+V
  • Or just use middle click on the terminal to paste the clipboard contents. alt text
share|improve this answer
add comment

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