第一步:安装windows terminal(windows11自带) 1,在开始界面搜索“windows terminal” 2,打开应用,或是下载应用 第二步:通过windows terminal 安装wsl2 1,打开windows terminal 输入如下代码 wsl --install 第三步:配置Ubuntu(linux系统) 1,在微软商店里直接搜索Ubuntu 并且下载 2,通过检查文件资源管理器是否出现“Li...
二、在 Visual Code 配置 WSL 打开Visual Code,按下 Ctrl J,选择 Terminal,选择刚才安装的 Ubuntu 我先改改 root 用户的密码,因为默认密码是什么我也不知道 此时可以先为 Ubuntu 更换包管理器的源为国内,效果是加快诸如apt-getinstall的下载速度,参考链接 (以下步骤是可选项:安装 zsh ——一个能更改命令符主题...
最好配置一下Windows Terminal的代理,有一个很简单的方法,就是在 Windows 的系统环境变量中添加代理相关的环境变量(端口号记得修改),这样设置是一定能让终端走代理的,不过这样做有个问题,设置之后我的奥创中心(我是 ROG 的主板)无法正常识别设备了,找了一晚上原因最后发现罪魁祸首就是添加了这两个环境变量,建议配置...
设置默认终端应用程序为Windows终端: 如果想要每次打开终端都默认启动Ubuntu而不是PowerShell的话,如下配置一下: 设置完之后记得点击保存。 Windows Terminal可以添加新的shell终端,至于如何配置请百度了解。但大部分情况下,重启一下终端之后,它便会自动识别并添加,比如先前安装的Ubuntu20.04。 关于Windows Terminal更花里胡...
或者直接在搜索窗口中输入windows terminal, 然后选择以管理员方式运行: windows terminal的窗口是: 可以把windows terminal理解成升级版的、功能更强劲的PowerShell/cmd。 在windows terminal窗口中,输入如下指令来激活WSL服务: # 开启linux子系统 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsyst...
有没有更好的方法?答案是有的,并且强烈推荐:Windows Terminal + WSL。 WSL,Windows Subsystem for Linux的缩写,意思是Windows内置Linux子系统,即无需虚拟机,直接在Windows下提供Linux运行环境,能够支持大多数命令行工具、程序和应用,这对我们来说是非常有用的。
激活WSL 2服务(Windows 11系统) 开启linux子系统和虚拟机平台后,必须要重启系统才能生效。 开启方式1-命令方式 按Win+X, 启动windows terminal (管理员),注意:是带有管理员的这个啊。 或者直接在搜索窗口中输入windows terminal, 然后选择以管理员方式运行: ...
(在 Windows 中,移至 [啟動>命令提示字元]。或者,以滑鼠右鍵按兩下 [開始] 按鈕,然後選取 [Terminal.) 執行命令: cd "%ProgramFiles%\Microsoft Defender for Endpoint plug-in for WSL\tools". 執行.\healthcheck.exe 命令。 檢閱Defender和 WSL 的詳細數據,並確定它們符合或超過下列需求: 外掛程式版本:...
Windows Terminal is now the Default in Windows 11 Kayla Cinnamon The day has finally come! Windows Terminal is now the default command line experience on Windows 11 22H2!This means that all command line applications will now automatically open in Windows Terminal. This blog post will go into ...
Windows Terminal is now the Default in Windows 11 Kayla Cinnamon The day has finally come! Windows Terminal is now the default command line experience on Windows 11 22H2!This means that all command line applications will now automatically open in Windows Terminal. This blog post will go into ...