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?
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 :
to paste :
* movements are done with vim like key bindings (j, k, l & m).
To expand on the solutions of @Erik and @xpixelz; these two scripts should work on both platforms:
Put a script like this called pbcopy in your bin folder:
This will put STDIN in both your selection buffer and clipboard: