Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was just wondering if there's a simple way to do this, or whether it's completely dependent on the terminal you use. If that's the case, then is there a standard that most terminals go by?

Right now I'm using Ubuntu and I assume that I have GNOME terminal.

share|improve this question

3 Answers 3

In X11, you have two "clipboard" equivalents:

  1. The 'CLIBPBOARD' selection – like the Windows clipboard.

    To copy, use CtrlShiftC if in GNOME Terminal, but CtrlC elsewhere.

    To paste in GNOME Terminal, press CtrlShiftV; in other programs use CtrlV.

  2. The 'PRIMARY' selection – somewhat more temporary, text-only.

    Simply select text to copy.

    Middle-click the mouse to paste. (ShiftInsert usually works to paste, except in Firefox, sadly.)

share|improve this answer

Most Linux terminals copy the text simply by marking it. To paste it just go to the webbrowsers URL bar and middle-click to paste, sometimes it might be the right mouse button and it should always work with shift-insert.

share|improve this answer

From memory, the keyboard shortcuts should work, CTRL+C CTRL+V between the two. However in some shell environments, if you copy the text from a web browser then click both left and right buttons on your mouse (or middle mouse button) it will be pasted into the terminal window.

Also copying text from the terminal, simply highlighting the text in most cases copies the text to the clipboard.

share|improve this answer
2  
Issuing Ctrl+C and Ctrl+V in the shell will not work as copy-paste by default. By default Ctrl+C sends the SIGINT signal to the shell and Ctrl+V interprets input escape character sequences. –  Herman Torjussen Jan 7 '12 at 23:56

Your Answer

 
discard

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.