如何判断你的 WSL Ubuntu 运行在 WSL1 还是 WSL2
为了判断你的 Ubuntu 或其他 WSL Linux 安装运行在 WSL1 还是 WSL2,打开 Powershell 并运行
check-wsl.ps1
wsl --list -v这将显示所有 WSL 安装和关联的 WSL 版本:
output.txt
PS C:\WINDOWS\system32> wsl --list -v
NAME STATE VERSION
* Ubuntu Running 1如你所见,Ubuntu 虚拟机运行的是 WSL VERSION 1。
前往 WSL2 安装页面 获取如何升级到 WSL2 的说明。
Check out similar posts by category:
Windows
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow