I spend a lot of time on Mac OS X as a desktop system, and on the Mac there are two nice little utilities for the command line, pbcopy and pbpaste which can accept stdin and write to stdout. Is there a similar utility or non-GUI pasteboard in linux? How does that work?
I read over this blog post http://blog.roseman.org.uk/tag/iterm2.html in which a guy who works for Google says that he can use XQuartz, iTerm2, and vim and have things he yanks in vim copied to the system pasteboard, which syncs with his local clipboard.
I've installed XQuartz, changed preferences and checked the boxes to sync the pasteboards, and connected to ssh remotely with X forwarding (ssh -X) but when I yank things in vim to the system pasteboard ("+yy) on a remote system, my local clipboard does not change.
What am I doing wrong? Do I need to be using tmux to have the pasteboards sync?
I'm going into this a little blind having not used the pasteboard in command-line linux before. Can someone help me understand a little more on this subject?
xsel/xclip, see unix.stackexchange.com/search?q=%2Bxsel%20%2Bxclip – Gilles Mar 29 '12 at 22:13