Super User Asked by Guitarmony on February 4, 2021
I’m trying to get WSL to utilize my clipboard so I can update files from the output via xsel -b > my-umatrix-rules.txt
. However, I’m getting the following error:
xsel: Can't open display: (null) : Inappropriate ioctl for device
I assume this has something to due with it being separately contained from Windows and therefore the clipboard itself. Is there a way I can get WSL to be able to look at the clipboard?
To get information from the Windows clipboard into WSL, use PowerShell and the Get-Clipboard cmdlet, like so:
powershell.exe -c Get-Clipboard > my-umatrix-rules.txt
To send data to the Windows clipboard from WSL, the easiest way I know is to use clip.exe
, like so:
cat my-umatrix-rules.txt | clip.exe
Answered by NotTheDr01ds on February 4, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP