How do you install a WSL distro to a different drive?

Experience Level: Junior
Tags: WSL

Answer

Run the following from he command-line
wsl --export <YourFileName>

Then duplicate the distro by running
wsl --import <DistroName> <Location> <YourFileName>

Then unregister the original distro by running
wsl --unregister <OldDistroName>

Comments

No Comments Yet.
Be the first to tell us what you think.
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL)

Are you learning WSL ? Try our test we designed to help you progress faster.

Test yourself