带有 Linux 子系统的 Windows;Linux 路径

带有 Linux 子系统的 Windows;Linux 路径
C:\Users\blah>which pwd
/usr/bin/pwd

C:\Users\blah>/usr/bin/pwd
The system cannot find the path specified.

C:\Users\blah>\usr\bin\pwd
The system cannot find the path specified.

我在 Windows 10 上安装了 Linux 子系统,并在该子系统中安装了 ubuntu。当我运行 ubuntu 和 bash 时,一切正常。

我确实注意到,在使用cmd(Windows 命令提示符)时,我可以使用各种 Linux 实用程序。但是,实用程序(例如)pwd返回的路径在 Windows 中无效。

有没有办法pwd通过cmd指定完整路径就像我上面列出的一样?


Windows 10 家庭版,版本 1903 内部版本 18362.418

我没有在这个系统上安装 Cygwin 或任何其他 gnu/linux 附加组件。这是一台新电脑,只安装了最少的第三方附加组件。

相关内容