Windows Subsystem For Linux (WSL)

Aus MattWiki

Basic Commands

wsl --list 
wsl --list -v                    # Show running status
wsl -d <distro>                  # Run specific distribution
wsl -u <username>                # Run image with specific 
wsl -u root                      # Run image as root

Clone Image

wsl --export <distro> <filename.tar.gz>
wsl --import <new-distro-name> <distrolocation> <filename.tar.gz>

Remarks:

Location of distros is

%LOCALAPPDATA%\packages\<subfolder-for-distro>

or

C:\Users\<username>\AppData\Local\packages\<subfolder-for-distro>