我可以在 Ubuntu for Windows (WSL) 中切换到 Windows cmd 吗?

Mis*_*leg 3 command-line windows-subsystem-for-linux

我正在使用适用于 Linux WSL 的 Windows 子系统。我可以分别使用ubuntu或启动和退出 Ubuntu 命令行exit,但我也想在cmd那里运行命令。

如何cmd.exe从 WSL 终端内开始?

kar*_*rel 5

在 Bash/WSL 控制台中,您可以通过指定可执行文件的(大小写正确的)名称,包括其 .exe 扩展名(例如:)来调用 Windows 可执行文件notepad.exe [filename]。要启动新的 cmd shell 并(可选)运行命令/可执行程序类型:

cmd.exe  
Run Code Online (Sandbox Code Playgroud)

  • 有关 Linux 的 Windows 子系统的问题,这是由 Canonical 和 Microsoft 开发的兼容层,用于在较新版本的 Windows 中本地运行 Ubuntu 程序,这是 Ask Ubuntu 的主题。[`wsl` 标签](https://askubuntu.com/tags/wsl/info) 在 Ask Ubuntu。 (4认同)