Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 如何访问ubuntu bash中的Windows目录_Linux_Windows_Bash_Ubuntu_Windows Subsystem For Linux - Fatal编程技术网

Linux 如何访问ubuntu bash中的Windows目录

Linux 如何访问ubuntu bash中的Windows目录,linux,windows,bash,ubuntu,windows-subsystem-for-linux,Linux,Windows,Bash,Ubuntu,Windows Subsystem For Linux,如何从UbuntuBashShell上的Windows10桌面访问文件,比如test.c 对这一问题的答复: 我不能评论(少于50个声誉),也不能回答(问题被搁置),也不能直接给OP发消息。所以我想我应该在这里分享答案,也许一个声誉更高的用户可以转发给他。谢谢 在终端上 cd/mnt/c/Users/ 或cd/mnt/d或任何其他驱动器 然后,您可以将文件移动到linux主目录 mv/mnt/c/Users/path/to/file/~/ 我想问的问题是:“新的Linux子系统和Bash在W

如何从UbuntuBashShell上的Windows10桌面访问文件,比如test.c

对这一问题的答复:

我不能评论(少于50个声誉),也不能回答(问题被搁置),也不能直接给OP发消息。所以我想我应该在这里分享答案,也许一个声誉更高的用户可以转发给他。谢谢

在终端上

cd/mnt/c/Users/
cd/mnt/d
或任何其他驱动器

然后,您可以将文件移动到linux主目录

mv/mnt/c/Users/path/to/file/~/

我想问的问题是:“新的Linux子系统和Bash在Windows 10中的位置在哪里?”

通过windows资源管理器,您应该可以:

C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME


有关更多信息,请参阅本文:

我在另一个问题中发表了评论,并添加了此问题的链接。我投票将此问题作为离题问题关闭,因为关闭的问题并不意味着邀请您在系统中工作来回答它。我投票支持此问题。我认为这是一种向公众记录这一点的方式,而不仅仅是向其他人提问。任何用谷歌搜索这个问题的人都会碰到这个问题。