First, Introduction
The Xclip command establishes a channel between the terminal and the Clipboard, which can be used to save the contents of the terminal output or file to the Clipboard in a command, or to output the contents of the Clipboard to a terminal or file.
Inside the X system, copy a paragraph of text from one window to another, with two sets of mechanisms, namely selections and cut buffers:
The commonly used copy & paste is the cut buffers mechanism used; with the mouse to select a piece of text, and then in another window press the middle mouse button to achieve replication, using the selections mechanism.
And selection can be divided into master and slave selection. When a file is selected with the mouse, the text is automatically copied to master selection.
Then press the middle mouse button in another place to automatically paste the contents of Master selection.
Second, installation
1) Yum mode
Yum Install Xclip
Third, examples
http://blog.csdn.net/pfanaya/article/details/7665853
Linux Xclip Commands