How to set default Linux distro WSL on Windows 11

You can set any Linux distro as the default on Windows 11, and in this guide, you will learn how.

Windows 11 WSL set default distro
Windows 11 WSL set default distro

On Windows 11, you can run multiple Linux distros through the Windows Subsystem for Linux (WSL). The only caveat is that the first distro installed on the system will become the default automatically.

Although this won’t prevent you from accessing the distro, when you run the “WSL” command, the default distribution will start automatically. However, the platform includes an option to change the default settings of any other distro available on Windows 11.

In this guide, you will learn the steps to make your preferred distro the new default on Windows 11.

Set default WSL Linux distro on Windows 11

To set any Linux distro as the default on WSL, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to view a list of all available distros and press Enter:

    wsl --list

    Quick tip: You can also use this variant wsl -l of the command.
  4. Type the following command to set the Linux distro as the new default on WSL and press Enter:

    wsl --setdefault DISTRO-NAME

    In the command, replace “DISTRO-NAME” with the name of the distro to set it as default (see step 3). For instance, this command makes Ubuntu Linux the default distro on Windows 11:

    wsl --setdefault Ubuntu

    WSL change default distro command

    Quick tip: You can also use this variant wsl -s Ubuntu of the command.

Once you complete the steps, when you run the “WSL” command, the default distro will start automatically on Windows 11.

About the author

Mauro Huculak is a Windows How-To Expert and founder of (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS.

Certifications: Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+.

Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central.

You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at [email protected].