<Distro>是你安装的Linux发行版名称。 如果想让WSL 2成为默认架构,可以执行以下操作: wsl —set-default-version 2 这将使所有安装的Linux发行版初始化为WSL 2。 编译WSL 2内核 微软还在GitHub上更新了编译WSL 2内核的步骤,只需3步: 1、从微软商店安装最新的Ubuntu发行版 2、打开Ubuntu子系统,安装内核组件: ...
wsl.exe--system-d<distribution-name> df-h/mnt/wslg/distro 如果此命令对你没有效果,请使用wsl --update命令升级到 WSL 的 Microsoft Store 版本,或尝试wsl df -h /。 该输出将包括: 文件系统:VHD 文件系统的标识符 大小:磁盘的总大小(分配给 VHD 的最大空间量) ...
(4)--cd <Directory> 选项将指定目录设置为当前工作目录。 如果使用了 ~,则将使用 Linux 用户的home。如果路径以 / 字符开头,将被解释为绝对 Linux 路径。否则,该值一定是绝对 Windows 路径。 (5)--distribution, -d <Distro> 选项运行指定分发wsl子系统。 (6)--user, -u <UserName>选项以指定用户身份运...
Oracle Linux 7.9 適用於 WSL 的 Fedora Remix 這會導致將<distro>.appx套件下載到您選擇的資料夾。 如果想要的話,您也可以透過命令列下載慣用的發行版本,而且可使用 PowerShell 搭配Invoke-WebRequestCmdlet。 例如,若要下載 Ubuntu 20.04: PowerShell
使用命令wsl --import <DistroName> <InstallLocation> <InstallTarFile>导入 tar 文件。 PowerShell wsl--importCentOS E:\wslDistroStorage\CentOS .\centos.tar 使用命令wsl -l -v检查已安装的发行版。 最后,使用命令wsl -d CentOS运行新导入的 CentOS Linux 发行版。
使用命令wsl --import <DistroName> <InstallLocation> <InstallTarFile>导入 tar 文件。 PowerShell wsl--importCentOS E:\wslDistroStorage\CentOS .\centos.tar 使用命令wsl -l -v检查已安装的发行版。 最后,使用命令wsl -d CentOS运行新导入的 CentOS Linux 发行版。
将 <DistroName> 替换为之前列表命令中找到的 Linux 发行版的名称。这个安装命令可以用于第一次安装,或者在你已经安装了 WSL 和默认的 Ubuntu 发行版之后再添加其他发行版。额外命令 IT之家获悉,微软还包括一些额外的命令来帮助你管理 WSL 实例的备份。你可以使用 wsl --update 来手动更新你的 WSL Linux 内核,...
wsl --update 2.3. 安装Ubuntu 22.04 LTS:打开Microsoft Store,查找Ubuntu 22.04.2 LTS并获取下载安装,请注意,不要在本步骤立即启动该Linux分发: 2.4. 运行以下命令,注销并卸载以前的Linux版本,以便重新安装干净的Linux(Ubuntu): wsl -l -v wsl --list --all ...
UpdateMyDistro.appxmanifest. There are several properties that are in the manifest that will need to be updated with your specific values: Note theIdentity Publishervalue (by default,"CN=DistroOwner"). We'll need that for testing the application. ...
Distro Version Debian Other Software No response Repro Steps wsl --update --pre-release Expected Behavior wsl would update if there is a new pre release Actual Behavior Checking for updates. Updating Windows Subsystem for Linux to version: 2.2.2. ...