In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with with whatever was in it the last time the browser was used. What works like pbcopy in Linux?
Linux – What’s like OSX’s pbcopy for Linux
linuxmacos
Best Answer
if you have X installed you may try xsel in this way :
or with xclip :
now you can use'em :
when I don't have X I use GNU Screen functionality to copy between open shells in a session using keyboard
to copy :
Ctrl-a -> Esc -> go to wanted position * -> Space (to begin selecting) -> press k to go forward mark text -> Enter
to paste :
Ctrl-a + ]
* movements are done with vim like key bindings (j, k, l & m).