适用于 Linux 的 Windows 子系统 : is there a way to access folder from windows [host] or vice versa

标签 windows ubuntu windows-subsystem-for-linux windows-users

我已经安装了 Windows 2010 home ed,并且在上面我已经安装了 Windows 的 Ubuntu 扩展支持。

我已经开始在那里写我的项目但不确定
如何从我的 Windows 系统(主机)访问 Ubuntu 中的目录

有什么想法吗?提前致谢

我宁愿不使用任何外部工具。

最佳答案

在 2019 年 5 月更新后的 Windows10 中,从 Windows 访问 WSL 文件的预期方式是通过挂载的网络驱动器。
您可以通过 \\wsl$\<distro> 访问它通过资源管理器等。您甚至可以通过运行 explorer.exe 从 wsl 启动资源管理器从你的 WSL 外壳。
有关更多信息,请参阅此处的开发博客文章:https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/

要访问 Windows10 文件系统,您只需使用安装在 /mnt/<drive_letter> 的文件系统即可。在 WSL

关于适用于 Linux 的 Windows 子系统 : is there a way to access folder from windows [host] or vice versa,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58038962/

相关文章:

c++ - 在 Windows 中使用 Apache Thrift

windows - 在 Windows 服务器上自行托管远程 git 存储库

c++ - 使用 sendmessage 将 wm_close 发送到另一个进程

ubuntu - 通过 Chef 执行 add-apt-repository 的正确方法是什么?

bash - 如何在 WSL2 中运行的 vscode 中设置 bash

Windows:原子地暂停整个进程?

c - Ptrace 无法附加

ubuntu - Docker构建错误/bin/sh : 1: apt-get: not found

r - 如何在 WSL 上升级 R 版本?

java - 如何从 java 顺序执行 wsl 命令?