How to copy a file from Windows Subsystem for Linux to Windows drive C?
Solution 1:
Does seem like an older issue, but might prove useful for others: I find the easiest way to achieve file copies from WSL to windows without having to struggle with permissions is as follows:
1) Open "File explorer"
2) Connect to your running WSL instance just like you would connect to a network drive:
--> Enter \\wsl$\< WSL_Distro >
in the address bar
3) Browse your WSL folder structure ;)
From here you can copy your Linux files, and paste them on your windows folders. Do note that I do not recommend that you copy file from windows to WSL using this method.
If you want to copy to WSL, Best use the "/mnt/" method!
Solution 2:
Maybe this will work for you:
- Copy the file you want to share
- Open ubuntu bash
- Type
explorer.exe .
in ubuntu bash - Paste the files