Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

How can one copy text from nano in Ubuntu WSL2 and paste it into a Windows application?

$
0
0

Microsoft has made this nifty tool called Windows Subsystem for Linux. WSL2 creates a lightweight VM running Linux (in this case Ubuntu) to facilitate using Linux on Windows.

Within WSL2 (Ubuntu) I've run: sudo nano ~/.ssh/id_rsa.pub. I attempt to use the normal nano method for copying. I can't then paste it on the Windows side.

Ends up WSL2 has its own key combination for copying/pasting between Linux/Windows and that you need to enable it within WSL.

I enable the function within WSL and use Ctrl+Shift+C to copy the text as instructed. Ctrl+Shift+V into a windows app does nothing.

I use the regular nano method to copy (Alt+Shift+A to mark, arrow keys to select, Alt+Shift+6 to copy) and then paste using Ctrl+Shift+V into a Windows app, still no luck.

What am I missing?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>