April 8, 2019

Cygwin clipboard

If you happen to find yourself on Cygwin and want to use the clipboard, you will find it at /dev/clipboard.

This can be used like any other file with pipes and such. For example, if you copy something, you can then print it out at the Cygwin command line by using cat /dev/clipboard. Or you can send things to the clipboard, for example cat myfile > /dev/clipboard.

(This is mostly a note to myself in case I forget this information later)

-

No comments: