Skip to content

How to Change Default Distro in Windows Subsystem for Linux

Richard
Written by
Richard
Jan 28, 2023 Updated Jun 19, 2026 3 min read
How to Add Music Folders in Windows Media Player

You can change your default Linux distribution in Windows Subsystem for Linux (WSL) to quickly launch your preferred environment.

WSL allows you to run Linux command-line tools directly on Windows, effectively acting as a lightweight, built-in Linux environment without the overhead of a full virtual machine. When you first install a Linux distro, such as Ubuntu, it automatically becomes the default.

However, if you install multiple distros, like Debian or Fedora alongside your initial one, you’ll likely want to switch which one launches by default. This ensures that when you type the simple `wsl` command in your terminal, it opens your chosen Linux version instantly.

This quick change streamlines your command-line workflow, ensuring your preferred Linux environment is ready to go immediately. Importantly, altering your default distro does not impact any of your other installed Linux distributions or the data contained within them.

⚡ Quick Answer

Open Windows Terminal or PowerShell as administrator and use wsl –set-default to change your default Linux distribution. Run wsl –list –verbose first to see your installed distro names.

Understanding WSL Versions

Windows Subsystem for Linux comes in two main versions, WSL 1 and WSL 2, with WSL 2 offering better speed and a full Linux kernel.

Command OutputMeaning
(Default)The distro that opens when you type wsl
StoppedThe distro is not currently running
RunningThe distro is active in the background

How to Change Your Default WSL Distro

You can change your default WSL distro using a simple command in Windows Terminal or PowerShell, making sure the correct Linux system starts automatically when you launch WSL.

  1. Open Windows Terminal or PowerShell.
  2. Right-click the icon and select Run as administrator.
  3. Type the following command to see your installed distros:
    wsl --list --verbose
  4. Identify the name of the distro you want to set as default.
  5. Run the following command to change it:
    wsl --set-default <DistroName>
  6. Replace <DistroName> with your chosen distro, for example: wsl --set-default Ubuntu

Summary

Changing your default Linux distribution in WSL is a quick way to manage your development environment.

What happens to my files when I change the default WSL distro?

Your files stay safe when you change the default WSL distro; they aren’t deleted or moved and remain in their original distribution’s virtual disk.

What happens to my files when I change the default WSL distro?

Changing your default WSL distribution does not delete or move your files. Your data remains stored within the virtual disk of each specific distribution. You can still access files in your non-default distributions by using the specific command for that distro or by navigating through the Windows file explorer network path.

Can I run multiple distributions simultaneously?

Can I run multiple distributions simultaneously?

Yes, you can run multiple Linux distributions at the same time. WSL is designed to handle several environments independently. Each distribution runs in its own isolated space, allowing you to use different versions of Linux for different projects without them interfering with each other or your main Windows system.

How do I change the default user for a specific distribution?

Changing the default user for a specific WSL distribution involves editing a configuration file within that Linux system, like Ubuntu’s /etc/wsl.conf.

How do I change the default user for a specific distribution?

To change the default user, you must edit the configuration file inside the distribution. For example, in Ubuntu, you can edit the /etc/wsl.conf file. Add a [user] section and specify the default username. After saving the file, restart the WSL instance using the wsl –shutdown command to apply the changes.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
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.

📚 Related Tutorials

How to Check Windows Subsystem for Linux Version
Windows How to Check Windows Subsystem for Linux Version
How to List Installed WSL Distros on Windows 11
Windows How to List Installed WSL Distros on Windows 11
How to Access Linux Files on Windows 11 Using WSL
Windows How to Access Linux Files on Windows 11 Using WSL
How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically

No comments yet — be the first to share your thoughts!

Leave a Comment

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

Exit mobile version