PS C:\windows\system32> wsl -l --all -v
NAME STATE VERSION
* Ubuntu-20.04 Stopped 2
PS C:\windows\system32> wsl --export Ubuntu-20.04 D:\WSL\Ubuntu\Ubuntu-20.04.tar
PS C:\windows\system32> wsl --unregister Ubuntu-20.04
正在注销...
PS C:\windows\system32> wsl --import Ubuntu-20.04 D:\WSL\Ubuntu D:\WSL\UbuntuUbuntu-20.04.tar --version 2
系统找不到指定的文件。
PS C:\windows\system32> wsl --import Ubuntu-20.04 D:\WSL\Ubuntu D:\WSL\Ubuntu\Ubuntu-20.04.tar --version 2
PS C:\windows\system32> ubuntu2004
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Fri Jun 16 19:03:39 CST 2023
System load: 0.06 Processes: 8
Usage of /: 0.6% of 250.98GB Users logged in: 0
Memory usage: 0% IPv4 address for eth0: 172.17.224.55
Swap usage: 0%
Expanded Security Maintenance for Applications is not enabled.
0 updates can be applied immediately.
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
This message is shown once a day. To disable it please create the
/root/.hushlogin file.
root@DESKTOP-U5ON84P:~#