DEV Community

Cover image for WSL system moving
IQIUM
IQIUM

Posted on

WSL system moving

  • First, close wsl:wsl --shutdown
  • Second, export wsl: wsl --export Debian D:\WSL\Debian.tar
  • Third, unregister wsl: wsl --unregister Debian
  • Lastly, we import the system: wsl --import Debian D:\WSL\Debian D:\WSL\Debian.tar
  • (optionly: change the default login user: debian config --default-user Zhang)

Top comments (0)