我已经在Windows上安装了Cygwin。在Cygwin中更改目录可以通过两种方式完成:
以Unix格式:
cd /cygdrive/path/to/folder/
Windows格式(用双引号引起来):
cd "C:\Path\To\Folder\"
是否可以像在Cygwin上那样使用Windows格式在Ubuntu WSL中更改目录?
在Ubuntu上尝试时出现此错误:
$ cd "C:\Path\To\Folder"
-bash: cd: C:\Path\To\Folder\: No such file or directory
$ cd "C:\Path\To\Folder\"
>