Sample Header Ad - 728x90

In WSL console, how do you read and write to the clipboard?

1 vote
1 answer
1238 views
How do you access the (windows) clipboard in WSL so that you can pipe it into commands, use it as stdin, etc.? There's more than enough answers about how to *write* to the clipboard. But I couldn't find any specifically about *reading* from it. For what it's worth: I'm answering my own question. Hopefully this saves others time in the future.
Asked by Daniel Kaplan (1070 rep)
Mar 10, 2022, 09:14 AM
Last activity: May 6, 2025, 05:14 PM