How to Install Linux on Windows 11 via WSL


0

If you want to install Linux on Windows 11 via WSL, the Windows Subsystem for Linux offers a fast and efficient way to use Linux distributions alongside Windows without dual-booting. WSL enables developers and system admins to run Linux tools natively—perfect for scripting, testing, and coding.

What Is WSL?

Windows Subsystem for Linux (WSL) is a compatibility layer developed by Microsoft that lets you run Linux command-line tools and applications directly on Windows, without the need for a virtual machine.

Why Use WSL?

  • Seamless integration between Windows and Linux
  • Low resource consumption
  • Access to Linux packages and tools
  • Support for Docker, Git, Python, Node.js, and more

Step-by-Step Guide to Install Linux on Windows 11 via WSL

Step 1: Enable WSL Feature

Open PowerShell as Administrator and run:

bashCopyEditwsl --install

This command installs WSL, the default Linux distribution (Ubuntu), and the virtual machine platform automatically.

If you want to install a specific version (WSL 1 or WSL 2), use:

bashCopyEditwsl --set-default-version 2

Tip: Make sure you have virtualization enabled in BIOS and that your Windows is updated.

Step 2: Choose and Install a Linux Distro

Once WSL is enabled, you can install your preferred Linux distribution from the Microsoft Store:

  • Ubuntu
  • Debian
  • Kali Linux
  • Fedora Remix
  • openSUSE

To view all available distributions:

bashCopyEditwsl --list --online

To install one manually:

bashCopyEditwsl --install -d <DistributionName>

Example:

bashCopyEditwsl --install -d FedoraLinux-42

Fedora 42 was recently added to WSL with native support for dev tools and seamless Windows integration.

Step 3: Set Up Your Linux Environment

Once installation is complete, launch your distro by typing:

bashCopyEditwsl

Or open it directly from the Start menu.

You’ll be prompted to create a username and password. This account will be the default user with sudo privileges.

Step 4: Start Using Linux Tools

You can now use commands like ls, git, apt, or dnf from your Linux environment. You can also:

  • Access your Windows files from /mnt/c/
  • Share environment variables and files
  • Use VS Code’s Remote – WSL extension to develop directly inside WSL

Optional: Upgrade to WSL 2 (If Not Already)

If you’re using WSL 1 and want the full kernel experience of WSL 2, run:

bashCopyEditwsl --set-version <distro-name> 2

WSL 2 brings better performance and full system call compatibility.

Common Commands for WSL Management

bashCopyEditwsl --status                      # Check WSL version and distro status
wsl --list                       # Show installed distros
wsl --set-default <distro-name> # Set default distro
wsl --terminate <distro-name>   # Stop a running instance

Best Linux Distros for WSL

  • Ubuntu: Most popular and beginner-friendly
  • Debian: Lightweight and stable
  • Fedora: Cutting-edge tools, now officially supported
  • Kali Linux: Best for penetration testing
  • openSUSE: Ideal for enterprise users

Learn more in our full guide: Top Linux Distributions for Developers in 2025

Final Thoughts

With WSL, you no longer need to dual-boot or rely on heavy virtual machines. Installing Linux on Windows 11 via WSL is quick, lightweight, and integrates perfectly with modern developer workflows. Whether you’re a beginner or a seasoned programmer, WSL brings the power of Linux directly to your Windows environment.


Like it? Share with your friends!

0