Click to See Complete Forum and Search --> : copy & paste in bash
jodef
12-07-2003, 01:08 AM
New to linux so posting alot of questions most of which require me to do something in the require me to post the output in the bash shell how do I copy and paste.
Right click doesn't seem to work and ctrl c ctrl v doesn't either.
OmarSerenity
12-07-2003, 01:13 AM
You should just be able to highlight the text you want to copy by left drag over it and then click where you you want to paste it and middle click.
je_fro
12-07-2003, 01:14 AM
Highlight and middle-click to paste.
Beavbo
12-07-2003, 01:16 AM
Did you try left-clicking? Works like a champ for me...
pickarooney
12-07-2003, 07:43 AM
I used to be able to paste whatever text was highlighted by using shift-insert. This worked with Solaris and Mandrake 9.0 by default, but not with Mandrake 9.1.
It's probably some setting in .bashrc or some similar config file?
AdaHacker
12-07-2003, 11:02 AM
It has nothing to do with BASH. The shell itself has no concept of copy and paste.
Copy and paste is handled by the X server, or by GPM if you're not running X. In X, you can just highlight the text you want to copy and then middle-click where you want to paste it. (The "copy" is done automatically when you highlight.) This should work with virtual terminals and pretty much any other X11 application.
If you're working from the console, you need to have gpm running. It allows you to use your mouse to copy and paste in pretty much the same way as in X (although I think it's right-click to paste with GPM).
If you don't have a middle button, use both left and right at the same time (while text is highlighted)
jonathan89
12-07-2003, 04:44 PM
heres how i do it:
1. open Konsole
2. highlight text
3. right click, and select Copy
4. go to editor, and click Paste
Linux is fun, huh ;)