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.

How do i copy text from a text editor, let's say gedit into a terminal session on ubuntu/gnome? I am on ubuntu 12.0.4 using gnome classic.

share|improve this question
add comment

1 Answer

Just select the text you want to copy, and then middle click on the terminal. On most *nix systems, selecting copies and middle click pastes.

Alternatively, you can select => right click=>copy => terminal => right click=> paste

Or, simply Ctrl+C,Ctrl+V

Have a look here for a short explanation of the Linux/Unix clipboard and the X buffer.

share|improve this answer
    
I neglected to mention the problem focuses on tab characters getting lost. –  javadba Jun 14 '13 at 14:38
    
@javadba selecting and middle clicking should copy tabs across correctly. In fact all of them should. –  terdon Jun 14 '13 at 14:47
    
Tabs definitely get lost with control c: pls test yourself - does "middle click" keep the tabs? i have 2 button mouse only –  javadba Jun 14 '13 at 15:00
    
@javadba if you have a two button mouse, you can emulate the middle click by clicking both buttons at the same time. I did try it and both Ctrl+V and Middle click copy the tabs correctly on my system. Are you sure you have tabs there? You can check with od -c file.txt. –  terdon Jun 14 '13 at 16:27
add comment

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.