Windows

How to Change Default Distro in Windows Subsystem for Linux

Richard
Written by
Richard
Jan 28, 2023 Updated Apr 16, 2026 3 min read
How to Change Default Distro in Windows Subsystem for Linux

The Windows Subsystem for Linux allows you to run Linux programs right on your Windows 11 computer. You do not need to set up a complicated virtual machine. When you install the first Linux distro in the Windows Subsystem for Linux, that Linux version becomes your main choice.

Why do this? If you have more than one Linux version installed, you might want to switch which one opens automatically when you run a command.

What happens when done? Your computer will use your chosen Linux version as the primary environment for all your tasks.

How to change your default Linux version

Follow these steps to update your settings:

  1. Open Windows Terminal. You can choose the Windows PowerShell or Command Prompt tab.
  2. Note: This process requires admin privileges. You may need to run your terminal as an administrator.
  3. To see which versions you have installed, type the following command and press Enter:


    wsl --list --all
  4. Look at the list to see which one is currently set to (Default).
  5. To change the default, type this command and press Enter:


    wsl --setdefault <name of Linux distro>
  6. For example, if you want to make Debian your default, type:


    wsl --setdefault Debian

After you run this command, your computer will use that version as your default for all future tasks.

Summary

Changing your default Linux version in Windows 11 is a simple process using the Windows Terminal. By using the list command, you can see all your installed versions. Using the set-default command allows you to pick exactly which one you want to use as your primary system.

How do I check which Linux distributions are installed in WSL?

You can check the installed Linux distributions in Windows Subsystem for Linux by opening Windows Terminal and running the command 'wsl --list --all' or 'wsl -l'. This will display a list of all installed distros along with the default one.

What command do I use to change the default Linux distribution in WSL?

To change the default Linux distribution in WSL, use the command 'wsl --setdefault '. Replace '' with the actual name of the distribution you want to set as default.

Can I have multiple Linux distributions installed in WSL?

Yes, you can have multiple Linux distributions installed in Windows Subsystem for Linux. Each distribution can be used independently, and you can switch the default one as needed.

What happens if I don't set a default Linux distribution in WSL?

If you don't set a default Linux distribution in WSL, the first distribution you installed will remain the default. This means that any Linux commands you run will be executed in that distribution unless specified otherwise.

Is it easy to switch between different Linux distributions in WSL?

Yes, switching between different Linux distributions in WSL is straightforward. You can easily change the default distribution using the 'wsl --setdefault ' command, allowing you to customize your environment based on your needs.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2470 articles → Twitter

📚 Related Tutorials

How to List Installed WSL Distros on Windows 11
Windows How to List Installed WSL Distros on Windows 11
How to Install Linux on Windows Subsystem for Linux (WSL)
Windows How to Install Linux on Windows Subsystem for Linux (WSL)
How to Access Linux Files on Windows 11 Using WSL
Windows How to Access Linux Files on Windows 11 Using WSL
How to Verify Windows Subsystem for Linux Version
Windows How to Verify Windows Subsystem for Linux Version

Leave a Reply

Your email address will not be published. Required fields are marked *