Accessing Linux files from Windows (host) Explorer

烈酒焚心 提交于 2020-02-07 02:14:54

问题


I have just installed WSL with Ubuntu 18.04. I am running Windows 10 Pro on inside track with version 18922.rs_prerelease.190614-1427

I used this guide:

https://docs.microsoft.com/en-us/windows/wsl/install-win10

Then I converted the WLS to WSL2 using this guide:

https://docs.microsoft.com/en-us/windows/wsl/wsl2-index

PS correctly shows my distro running in WSL2:

PS C:\WINDOWS\system32> wsl --list --verbose
  NAME            STATE           VERSION
* Ubuntu-18.04    Running         2

I am using git on the distro and have created new SSH-keys. I need to access the key files (at least to copy them) from Windows.

I thought I could write

$explorer .

as described here:

https://winaero.com/blog/access-wsl-linux-files-file-explorer-windows-10/

And there is no "Tux icon" in my "Networks section" as described here:

https://winaero.com/blog/windows-10-build-18836-shows-wsl-linux-file-system-in-file-explorer/

So what do I do ... how do I access the files from Windows?


回答1:


As described in https://www.tenforums.com/tutorials/127857-access-wsl-linux-files-windows-10-a.html access of the linux files is available through \\wsl$.

To access to your root distro you could use :

explorer \\wsl$\Ubuntu-18.04



回答2:


Typing explorer.exe . in your Bash shell might work for you as well.



来源:https://stackoverflow.com/questions/56772206/accessing-linux-files-from-windows-host-explorer

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