在使用wsl时,总是需要执行windows的cmd,但是windows命令行对于大多数人使用起来还是不习惯,微软提供了在windows中Linux与Windows的命令互通,即可以使用cmd shell执行Linux命令,也可以使用bash shell来执行windows命令。

WSL可对 Windows 与 Linux 之间的集成操作:

  • 从 Linux shell(如 Ubuntu)运行 Windows 工具(任意 .exe)。
  • 从 Windows shell(即 PowerShell or cmd )运行 Linux 命令(如 cd ls grep)。
  • 在 WSL与windows之间共享环境变量。 (版本 17063+)

标签: Linux, shell, windows, Windows, cmd, WSL

相关文章推荐

添加新评论,含*的栏目为必填