如何访问ubuntu bash中的Windows目录

时间:2016-08-12 22:23:01

标签: linux windows bash ubuntu windows-subsystem-for-linux

如何从Ubuntu Bash shell上的Windows 10桌面访问文件,比如test.c。

回答这个问题: https://stackoverflow.com/questions/38921301/bash-and-ubuntu-subsystem-in-windows-10

我无法评论(不到50个声誉),我无法回答(问题被搁置),我无法直接向OP发送消息。所以我想我可以在这里分享答案,因为用户可以转发给他更多的声誉。谢谢!

2 个答案:

答案 0 :(得分:3)

在终端上

cd /mnt/c/Users/

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

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

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

答案 1 :(得分:2)

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

通过Windows资源管理器,这应该可以帮助您:

C:\ Users \用户名\应用程序数据\本地\ Lxss \家\ USERNAME

有关详细信息,请参阅此文章:http://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/