如何在WSL-Ubuntu上的bash中导航到C盘?

我在Windows 10上安装了Windows上的Ubuntu上的bashfunction,我想在C:\驱动器上更改此路径的目录:

 C:/wamp64/www 

我该怎么办 ?

在Windows子系统Linux(WSL)中C:\驱动器安装为/mnt/c/D:\安装为/mnt/d/ et cetra。 因此, C:/wamp64/www应该是/mnt/c/wamp64/www 。 尝试:

 cd /mnt/c/wamp64/www 

在Ubuntu终端中转到该文件夹​​。 注意,第一个/之前的mnt并记住在Ubuntu文件和文件夹名称区分大小写。 所以wamp64WAMP64 ,wAmP64 , and WaMp64`是4个不同的文件夹! 有关使用区分大小写的更多信息,请参阅https://superuser.com/questions/1116625/how-can-i-access-case-sensitive-paths-on-windows-created-with-bash-on-ubuntu-on WSL中的文件名。

参考文献:

https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/

https://superuser.com/questions/1066261/how-to-access-windows-folders-from-bash-on-ubuntu-on-windows

希望这可以帮助