Windows 10 bash(ubuntu 子系统)

Windows 10 bash(ubuntu 子系统)

Windows 10 bash(ubuntu 子系统)我在周年更新后安装了该功能我的问题是 bash 作为子系统是什么,它是如何工作的,以及安装在 bash(ubuntu sub)中的 gcc、g++ 等应用程序是否可以被 windows 中的程序使用,例如安装在 windows 中的代码块 ide 是否可以检测到这些应用程序(gcc、g++),即我可以使用安装在 windows 中的 ubuntu 中的任何库或应用程序吗,比如安装在 windows 中的代码块的 gcc 编译器

答案1

我可以使用 Windows 中安装的任何 Ubuntu 库或应用程序吗?

不。

您在 Bash shell 中安装的软件仅限于 Bash shell。您无法从命令提示符、PowerShell 或 Windows 中的其他地方访问它。

尽管 Bash 环境和 Windows 可以访问计算机上的相同文件,但 Bash shell 中的软件也不能直接与 Windows 程序交互或启动 Windows 程序。

来源如何在 Windows 10 上安装和使用 Linux Bash Shell

相关内容