Wsl

Original link:current page

Description:

No usage information.

Steps as follows:

In CMD:
1. show all wsl Distributions

wsl -l

2. export the Distribution

wsl --export Ubuntu1804 <your_path_to_store>\ubuntu.tar

3. Import Distribution

wsl --import <the_new_distribution_name> <the_new_root_location> <your_path_to_store>\ubuntu.tar

. 4set the default Distribution

wsl -s <the_new_distribution_name>

Now when you run bash command, you will enter the new Distribution


  • Last modified: 2019/11/15 11:21