I've installed Debian in Windows Subsystem Linux (WSL) on Windows 10.
SSH files are very long, and it doesn't make sense to copy them with the mouse cursor.
I'm also told that Debian doesn't ship with a clipboard: you need to install a clipboard? So, I don't even know where to begin to look.
"Copy to clipboard" in VIM is configured and working properly, but any contents copied to the 'clipboard' are removed from the 'clipboard' once VIM is closed; similarly, Nano has a CTRL+u function to cut text, and its clipboard does not survive outside of Nano.
cat /path/to/file | clip.exe
cat
command put the file contents to the output. It is then pipe to the
clip.exe
, a Win32 program, redirects output to the Windows clipboard.
Do not forget to add the .EXE
extension of the later one. There are multiple
cat
alternatives can be used, see this and this.
Further Reading: