Manipulate the X Clipboard from the Command Line
2015 November 7
The key is the xclip program! To put text into the X clipboard (“copy”):
xclip -b <file.txt
To fetch the text from the X clipboard (“paste”):
xclip -b -o >file.txt
On Fedora, this requires installing the
See a list of all how-to guides.
On GitHub you can propose a revision to this guide or view its revision history.