从 Windows(主机)资源管理器访问 Linux 文件 [英] Accessing Linux files from Windows (host) Explorer

查看:41
本文介绍了从 Windows(主机)资源管理器访问 Linux 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 Ubuntu 18.04 上安装了 WSL.我正在内部轨道上运行 Windows 10 Pro,版本为 18922.rs_prerelease.190614-1427

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

我使用了本指南:

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

然后我使用本指南将 WLS 转换为 WSL2:

Then I converted the WLS to WSL2 using this guide:

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

PS 正确显示了我在 WSL2 中运行的发行版:

PS correctly shows my distro running in WSL2:

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

我在发行版上使用 git 并创建了新的 SSH 密钥.我需要从 Windows 访问密钥文件(至少复制它们).

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.

我以为我可以写

$explorer .

如下所述:

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

我的网络部分"中没有Tux 图标",如下所述:

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/

那我该怎么办...如何从 Windows 访问文件?

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

推荐答案

https://www.tenforums.com/tutorials/127857-access-wsl-linux-files-windows-10-a.html 访问linux文件可通过 \\wsl$ 获得.

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

这篇关于从 Windows(主机)资源管理器访问 Linux 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆