Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

wsl import

You first must export the WSL distribution you wish to clone.

1. wsl.exe --export OriginalDistributionName FileName.tar

You must now import the distribution you just cloned with the following command:

2. wsl.exe --import ClonedDistributionName InstallLocation FileName.tar

You can start the cloned distribution by running the following command:

3. wsl --distribution ClonedDistributionName
 
PREVIOUS NEXT
Tagged: #wsl #import
ADD COMMENT
Topic
Name
9+5 =