Skip to content

WSL

常用命令

  • 查看 WSL 状态

    wsl --status
    
  • 查看可用发行版

    wsl --list --online
    
  • 安装指定发行版

    wsl --install --distribution <Distribution Name>
    
  • 卸载发行版

    尽管可以通过 Microsoft Store 安装 Linux 发行版,但无法通过 Store 将其卸载。

    wsl --unregister <DistributionName>
    

使用 systemd

distrod_wsl_launcher -d <new_distrod>