Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

If you have to reinstall a distro for WSL it loses the default setting so that bash from PowerShell no longer works.

Here is the fix

wsl --list

This will get the current distributions on your machine. The distro you installed should be there

wsl --set-default <distro>

Replace <distro> will the distro name

Use wsl -l -v to list the WSL version and distro versions

Use wsl --distribution <distro> to start a distro, it’s the same as doing bash from PowerShell.

Use wsl -t <distro> to terminate a running distro.

  • No labels