How To Install Wsl On Windows 11: Step-by-Step Guide for Beginners

Installing WSL on Windows 11 is straightforward. Open PowerShell as an administrator, run the command wsl –install, then restart when prompted. After reboot, pick or install a Linux distribution, launch it to set up a user, and you are ready. This will install WSL 2, enable the required features, and get a working Linux shell in a few minutes.

How To Install Wsl On Windows 11 – Step by Step Tutorial

This short guide will walk you through the exact commands and clicks to install WSL on Windows 11, get a Linux distribution, and make sure everything runs as WSL 2. Follow the steps in order and I will explain what each one does.

Step 1: Open PowerShell or Windows Terminal as administrator.

Open the Start menu, search for PowerShell or Windows Terminal, right click it, and choose Run as administrator.

Running as administrator is required for enabling system features and installing WSL. If you forget, the commands will fail or tell you to rerun with admin rights.

Step 2: Run the command step to install WSL automatically, wsl –install.

Type wsl –install and press Enter to let Windows enable required features, download the WSL2 kernel, and install a default Linux distro.

The single wsl –install command is the easiest route on Windows 11, because it enables Virtual Machine Platform and Windows Subsystem for Linux, downloads needed components, and installs a distribution like Ubuntu. If you want a specific distro, add -d name, for example wsl –install -d Ubuntu.

Step 3: Restart your PC when prompted.

If the installer asks for a restart, reboot now to finish enabling the system features.

A reboot completes the feature enablement and applies kernel updates. WSL will not finish setup until the restart is done.

Step 4: Set WSL 2 as the default version, wsl –set-default-version 2.

After reboot, run wsl –set-default-version 2 to ensure new distros use WSL 2 for better performance and compatibility.

WSL 2 uses a lightweight VM and gives near-native Linux behavior, including full system call compatibility. You only need this step if your default version is not already 2.

Step 5: Install or choose a Linux distribution, via Microsoft Store or wsl –install -d.

If you did not install a distro automatically, open the Microsoft Store, search for Ubuntu, Debian, or another distro, and click Install, or use wsl –install -d .

Choosing a distro is mostly personal preference, Ubuntu is beginner friendly, Debian is stable, and Fedora gives a different package set. The install from Store will integrate with WSL so the distro appears in your Start menu.

Step 6: Launch the Linux distro and create your user account.

Open the distro from the Start menu or run wsl in the terminal, then create your Linux username and password when prompted.

The first launch runs distro setup, extracts files, and sets up your Linux environment. Keep your username and password handy for sudo access.

Step 7: Update the WSL kernel and Linux packages, wsl –update and sudo apt update && sudo apt upgrade.

Run wsl –update in Windows to refresh the WSL kernel, then inside the Linux distro run the distro package update commands.

Keeping both the WSL kernel and your distro packages current fixes bugs and improves performance. If you use a non-apt distro, use its package manager instead.

After you complete these steps, you will have a fully working WSL 2 environment on Windows 11. You can run Linux command line tools, develop with native Linux toolchains, and even run Linux GUI applications supported by WSL. Your Linux files live inside the distro and you can access Windows files from /mnt/c, giving a bridge between systems.

Tips for How To Install Wsl On Windows 11

  • Enable virtualization in BIOS if installation fails, this is often labeled VT-x, AMD-V, or Virtualization Technology.
  • Use wsl –install -d to pick a specific distro during the install, it saves a step.
  • Install Windows Terminal from the Microsoft Store for a cleaner, tabbed command line experience.
  • Run wsl –update regularly to get the latest WSL improvements and security fixes.
  • Avoid editing Linux files using Windows tools inside the distro file system, use /mnt/c for shared work to prevent permission and corruption issues.
  • If you need GUI apps, enable the WSLg feature which is included on recent Windows 11 builds.
  • Back up important files from your distro with wsl –export before making big changes or uninstalling.

Frequently Asked Questions

What is WSL and why should I use it?

WSL stands for Windows Subsystem for Linux, it lets you run Linux directly on Windows without a full virtual machine. Use it to run Linux tools, development stacks, and scripts natively while keeping your Windows workflow.

What is the difference between WSL 1 and WSL 2?

WSL 1 uses a translation layer and WSL 2 uses a lightweight virtual machine with a real Linux kernel. WSL 2 is faster for most tasks and supports full system calls, making it more compatible with Linux software.

Do I need to enable virtualization in BIOS to use WSL 2?

Yes, WSL 2 requires virtualization support, so you may need to enable VT-x or AMD-V in your BIOS or UEFI settings. If virtualization is disabled, the installer will warn you or fail.

Can I run Linux GUI applications with WSL on Windows 11?

Yes, Windows 11 supports WSLg which allows Linux GUI apps to display natively on the Windows desktop. Make sure you have a recent Windows build and WSL is updated.

How do I uninstall WSL or a Linux distro?

To remove a distro, run wsl –unregister from PowerShell, or use the Apps & features settings in Windows. To disable WSL entirely, turn off Windows Subsystem for Linux and Virtual Machine Platform in Windows Features, then reboot.

Will WSL slow down my computer?

No, WSL is lightweight and uses minimal resources when not running. WSL 2 runs inside a small managed VM, and resource use is generally modest compared to full VM software.

Can I access Windows files from Linux and vice versa?

Yes, Windows drives are available under /mnt, for example C drive is /mnt/c. For best performance, edit files on the side you are using, Linux files inside the distro, Windows files from Windows tools.

Summary

  1. Open PowerShell as admin
  2. Run wsl –install
  3. Restart your PC
  4. Set default version to WSL 2
  5. Install or pick a distro
  6. Launch and create a user
  7. Update kernel and packages

Conclusion

How To Install Wsl On Windows 11 is easier than most people expect. The single command wsl –install automates most steps, but knowing the manual pieces helps when something goes wrong. You learned to run the installer, restart, select a distribution, and finalize setup with updates and user creation. If you follow the steps above, you will be running Linux on Windows in minutes, with access to powerful development tools and a familiar file bridge.

Beyond installation, think about how you will use WSL. If you plan on serious development, install Windows Terminal, configure SSH keys, and link your code editor to the WSL filesystem. If you want GUI apps, ensure WSLg is active and update the WSL kernel. If you work across environments, set up consistent tooling and path habits, and avoid editing distro files with Windows apps to prevent subtle file permission issues.

If you hit trouble, note the error text, check virtualization in BIOS, and run wsl –update and wsl –status to get diagnostic info. Microsoft documentation and community forums are good places for specific error solutions. Try different distros to see which feels best, and export your distro before making big changes so you can restore it quickly.

Finally, use WSL to experiment and learn. It is a safe way to try Linux commands and software without leaving Windows. After you get comfortable, explore advanced features like mounting drives, running Docker with WSL, or configuring network tools. Now that you know How To Install Wsl On Windows 11, go ahead and try it, and then build a small project to put your new Linux setup to work.