如何访问 Windows ubuntu bash 中的目录

How to access Windows directories inside ubuntu bash

如何从 Ubuntu Bash shell.

上的 Windows 10 桌面访问文件 test.c

本题答案:

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

在终端上

cd /mnt/c/Users/

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

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

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

我相信问的问题是:"Where is new Linux subsystem and Bash are located in Windows 10?"

通过 windows 资源管理器,您应该可以到达那里:

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

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