How to Access Linux Files in a WSL distro from Windows 10?

我的未来我决定 提交于 2019-12-08 15:02:49

问题


Recently I updated my Windows 10 Pro with May Update (version 1903, build 18362.116). Then for my existing distros: OpenSuse Leap 15 and Ubuntu (installed from MS Store), I wanted to open a linux directory by using Explorer and I'm getting this message:

[susedis@mypc ~]$ explorer.exe .
If 'explorer.exe' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf explorer.exe

This problem happens also with VSC (code) and VSC-Insiders (code-insiders).

I've read this article and ...

OPTION 1: my current problem

OPTION 2: icon LINUX does not exist in tree view

OPTION 3: it works

Supposedly options 1 and 2 should exist and work, even more with the latest update. What's wrong? Thanks in advance.

PS1: I've found these articles Run Visual Studio Code for Linux from WSL and Using Visual Studio Code with Windows Subsystem for Linux, they talk about installing xserver and more stuff on side linux. But many other articles and videos don't talk about it, it's like it was a built-in feature of Windows. This is so dark.


回答1:


I just found what is the root of my problem: the distro.

explorer, code, code-insiders commands ONLY work through UBUNTU and I was using OpenSuse.

This warning is lacking in every article on Web I read, including on VSC site (example: Developing in WSL). This is a disadvantage for other distros. Very bad.

PS1: The solution can be found here.



来源:https://stackoverflow.com/questions/56334461/how-to-access-linux-files-in-a-wsl-distro-from-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!