gpt4 book ai didi

visual-studio-code - Windows 上的 Ubuntu 作为 VS 代码终端 - 可执行路径

转载 作者:可可西里 更新时间:2023-11-01 10:03:02 26 4
gpt4 key购买 nike

有一个related question但它详细介绍了 WSL 的方法,在较新版本的 Windows 中,Linux 发行版不再是测试版,而是通过 MS 应用商店提供。

我在哪里可以找到 Ubuntu on Windows 可执行文件的路径? (不是 WSL。)我尝试右键单击该图标以查找属性,但它不存在,它似乎是某种特殊的快捷方式。

最佳答案

如果您安装了多个发行版,您可以阅读如何单独启动一个发行版。

https://msdn.microsoft.com/en-us/commandline/wsl/wsl-config

但是如果你只安装了 1 个,它会默认选择那个

There are three ways to launch and run WSL:

wsl.exe or bash.exe
wsl -c [command] or bash -c [command]
[distro] ie ubuntu -- this is the same as launching the installed app from the Windows menu.

In the first two cases, WSL must pick a distribution to run - a default distribution. If you don't explicitly set a default, it will be the first one installed.

所以你可以继续简单地使用bash.exe

关于visual-studio-code - Windows 上的 Ubuntu 作为 VS 代码终端 - 可执行路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47473965/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com