If you want to install Linux on Windows 11, you have several options. You can run Linux inside Windows using Windows Subsystem for Linux (WSL), install Linux in a virtual machine, or set up a dual-boot system that lets you choose Windows or Linux when the computer starts.
For most beginners, WSL is the easiest way to install Linux on Windows 11. It doesn’t require replacing Windows, creating a traditional dual-boot setup, or repartitioning your drive. You can install a Linux distribution such as Ubuntu and use Linux commands and development tools directly from Windows.
A virtual machine is another good option if you want a more complete Linux desktop while keeping Windows installed. Dual booting provides the most traditional Linux experience, but it requires more preparation because you will be working with disk partitions and boot settings.
In this guide, we’ll explain how to install Linux on Windows 11 using these methods, starting with WSL. You’ll also learn how to install Ubuntu, update Linux, access Windows files, run Linux commands, and troubleshoot common installation problems.
Can You Install Linux on Windows 11?
Yes. Windows 11 supports several ways to run Linux.
The three most common options are:
| Method | Windows Stays Installed | Linux Desktop | Difficulty |
|---|---|---|---|
| WSL | Yes | Limited by default | Easy |
| Virtual machine | Yes | Yes | Moderate |
| Dual boot | Yes | Yes | Advanced |
Your choice depends on what you want to do.
If you’re learning Linux commands or developing software, WSL is usually a great starting point.
If you want to experiment with a complete Linux desktop without changing your disk partitions, a virtual machine may be better.
If you want Linux to run directly on your hardware, dual booting is an option.
What Is Windows Subsystem for Linux?
Windows Subsystem for Linux, commonly called WSL, allows you to run a Linux environment directly on Windows.
You can install supported Linux distributions and use tools such as:
- Bash
- Python
- Git
- SSH
- Linux package managers
- Development tools
- Command-line utilities
The major advantage is that you don’t have to completely replace Windows.
You can open Linux from Windows and switch between your normal Windows applications and Linux tools.
What Do You Need Before Installing Linux on Windows 11?
Before starting, make sure your computer meets the basic requirements for the method you choose.
For WSL, you should have:
- A supported Windows 11 installation
- An administrator account or permission to make system changes
- An internet connection for downloading Linux components
- Enough available storage
- Windows features required by WSL enabled or available
For a virtual machine, you’ll also want enough RAM, storage, and processor resources.
For dual booting, you need additional disk space and should make a backup of important files before modifying partitions.
How to Install Linux on Windows 11 Using WSL
For most beginners, this is the easiest method.
Microsoft provides a simplified WSL installation command that can install WSL and a default Linux distribution.
Step 1: Open Windows Terminal as Administrator
Open the Start menu.
Search for:
Terminal
Right-click Windows Terminal and choose:
Run as administrator
Windows may ask for permission through User Account Control.
Select Yes.
Step 2: Run the WSL Installation Command
In Windows Terminal, enter:
wsl --install
Press Enter.
Windows will install the required WSL components and a default Linux distribution when available.
The exact installation process can vary depending on your Windows configuration.
Step 3: Restart Your Computer
Windows may ask you to restart.
Save your work and restart the PC.
Restarting allows the required Windows components to finish configuring.
Step 4: Start Linux
After restarting, Windows may continue the Linux distribution setup automatically.
If Ubuntu was installed, you may see an Ubuntu terminal window.
If it doesn’t appear automatically, open the Start menu and search for the installed Linux distribution.
Select it to launch Linux.
How to Set Up Ubuntu on Windows 11
Ubuntu is one of the most popular Linux distributions for beginners and developers.
During the first launch, Ubuntu may take a little time to initialize.
You’ll then be asked to create a Linux user account.
Step 1: Choose a Linux Username
Enter the username you want to use inside your Linux environment.
This username is separate from your normal Windows username.
Step 2: Create a Password
Enter a password for your Linux account.
When you type a password in the Linux terminal, you may not see characters appearing on the screen.
That’s normal.
Type the password and press Enter.
Step 3: Confirm the Password
Enter the password again when prompted.
Once setup finishes, you’ll have access to your Linux command line.
How to Check Whether Linux Is Installed on Windows 11
Open Windows Terminal or PowerShell and enter:
wsl --list --verbose
You should see your installed Linux distributions.
The output can show information such as the distribution name and whether it uses WSL 1 or WSL 2.
WSL 2 is generally the preferred architecture for modern Linux workloads.
How to Check Your WSL Version
Run:
wsl --status
This can show information about your WSL configuration.
You can also check individual distributions with:
wsl --list --verbose
If a distribution is using WSL 2, the version column will indicate it.
How to Update Linux After Installation
Once Linux is installed, it’s a good idea to update the package information and installed packages.
For Ubuntu, open the Linux terminal and run:
sudo apt update
After the update completes, you can upgrade installed packages with:
sudo apt upgrade
You may be asked to confirm the operation.
Keeping your Linux environment updated helps ensure that packages receive available fixes and improvements.
How to Run Linux Commands on Windows 11
After installing Linux through WSL, you can use Linux commands from the distribution’s terminal.
For example:
pwd
shows your current location.
You can use:
ls
to list files and folders.
To move into another directory, use:
cd folder-name
To create a directory, use:
mkdir test
This gives you a practical Linux environment without removing Windows.
How to Access Windows Files From Linux
One of the most useful features of WSL is that Linux can access your Windows file system.
Windows drives are typically available under /mnt.
For example, your Windows C drive can generally be accessed through:
cd /mnt/c
You can then navigate through your Windows folders.
For example:
cd /mnt/c/Users
You can use this to work with files stored on Windows from within Linux.
How to Access Linux Files From Windows 11
You can also access your WSL files from Windows.
In File Explorer, enter:
\\wsl$
in the address bar.
Windows can then display your installed WSL distributions.
This makes it easier to move between Windows and Linux files.
However, when working with Linux application files, it’s generally better to use Linux tools within the Linux environment rather than manually modifying internal Linux files from Windows.
How to Install Software in Linux on Windows 11
If you’re using Ubuntu, you can install many packages through the apt package manager.
For example:
sudo apt install git
To install Python:
sudo apt install python3
The exact package names depend on what you’re installing.
You can search available packages using:
apt search package-name
This is one of the major advantages of having a Linux environment available directly inside Windows.
How to Install a Different Linux Distribution on Windows 11
WSL supports multiple Linux distributions.
To see available distributions, run:
wsl --list --online
You’ll see distributions available for installation.
To install a particular distribution, use:
wsl --install -d DistributionName
Replace DistributionName with the name shown in the list.
For example, if the distribution is listed as Ubuntu, you can install Ubuntu with:
wsl --install -d Ubuntu
The available distributions and exact names can vary.
How to Install Linux on Windows 11 Using a Virtual Machine
WSL is excellent for command-line work, but what if you want a complete Linux desktop?
A virtual machine can be a better choice.
A virtual machine runs Linux inside a software-created computer environment while Windows remains the main operating system.
Popular virtualization applications include:
- VirtualBox
- VMware Workstation
- Hyper-V on supported Windows editions
The general process is similar regardless of the virtualization software.
Step 1: Download a Linux ISO
Choose a Linux distribution.
Popular beginner-friendly choices include:
- Ubuntu
- Linux Mint
- Fedora
- Debian
Download the ISO image from the distribution’s official website.
Step 2: Install Virtualization Software
Install a compatible virtual machine application on Windows 11.
Follow the application’s installation instructions.
Step 3: Create a New Virtual Machine
Open the virtualization application.
Choose the option to create a new virtual machine.
You’ll normally need to specify:
- Virtual machine name
- Linux ISO file
- Virtual disk size
- RAM allocation
- Processor allocation
Step 4: Start the Virtual Machine
Start the virtual machine.
It should boot from the Linux ISO.
You’ll then see the Linux installer.
Step 5: Install Linux
Follow the Linux installation wizard.
Because Linux is being installed inside a virtual disk, your normal Windows installation remains separate.
After installation, remove or disconnect the ISO according to the virtualization software’s instructions.
Then restart the virtual machine.
How Much RAM Should You Give a Linux Virtual Machine?
The amount depends on your computer and the Linux distribution.
A lightweight Linux environment needs fewer resources than a full desktop environment.
Don’t allocate so much RAM to the virtual machine that Windows becomes unusable.
For example, if your PC has limited memory, start with a modest allocation and increase it if necessary.
The same principle applies to virtual CPU cores.
How to Install Linux Alongside Windows 11 With Dual Boot
Dual booting is different from WSL and virtualization.
With dual boot, Windows and Linux are installed as separate operating systems on the computer.
When you start the PC, a boot menu lets you choose which operating system to launch.
This provides a more traditional Linux experience.
However, dual booting is more advanced.
Important: Back Up Your Files First
Before changing partitions or installing another operating system, back up important files.
Ideally, keep an additional copy of important documents, photos, schoolwork, and other files on an external drive or another trusted backup location.
A mistake during partitioning can cause data loss.
Step 1: Create Free Disk Space
Windows needs enough space for Linux.
Open:
Settings > System > Storage > Advanced storage settings > Disks & volumes
Depending on your Windows configuration, Disk Management may also be useful.
You can shrink an existing Windows partition to create unallocated space.
Step 2: Download a Linux ISO
Choose the Linux distribution you want.
Download its ISO from the official source.
Step 3: Create a Bootable USB Drive
You’ll need a USB flash drive with enough capacity for the Linux installer.
Use a trusted bootable-media creation utility to write the Linux ISO to the USB drive.
Be aware that creating bootable installation media can erase existing data on the USB drive.
Step 4: Restart Your Computer
Connect the bootable USB drive.
Restart the PC.
You’ll need to enter the computer’s boot menu or firmware settings.
The exact key varies by manufacturer.
Common keys include F12, F11, Esc, or another designated key.
Step 5: Boot From the USB Drive
Select the USB device from the boot menu.
Linux should load its installer environment.
Step 6: Choose the Installation Option
Many Linux installers offer options for installing Linux alongside an existing Windows installation.
Read the options carefully.
If you’re unsure about partitioning, don’t proceed until you understand which option you’re selecting.
Step 7: Complete the Installation
Follow the Linux installer.
You’ll normally select:
- Keyboard layout
- Time zone
- User account
- Password
- Installation location
- Disk configuration
After installation, restart the PC and remove the USB drive when prompted.
WSL vs Virtual Machine vs Dual Boot
Which installation method should you choose?
| Feature | WSL | Virtual Machine | Dual Boot |
|---|---|---|---|
| Keeps Windows | Yes | Yes | Yes |
| Full Linux desktop | Not the primary focus | Yes | Yes |
| Easy to install | Very easy | Moderate | Advanced |
| Disk partitioning | No traditional partitioning | No | Yes |
| Restart required to use Linux | No | No | Yes |
| Best for Linux commands | Excellent | Good | Excellent |
| Best for full Linux experience | Limited | Excellent | Excellent |
| Beginner friendly | Excellent | Good | Moderate |
For most beginners who simply want Linux tools, start with WSL.
How to Uninstall Linux From Windows 11
If you installed Linux through WSL and no longer need it, you can remove the distribution.
First, list installed distributions:
wsl --list
Then unregister the distribution you want to remove:
wsl --unregister DistributionName
Replace DistributionName with the actual distribution name.
Be careful: unregistering a WSL distribution removes its Linux files and data.
Make sure you’ve backed up anything important before doing this.
How to Fix WSL Installation Problems
Sometimes WSL doesn’t install correctly.
Here are a few things to check.
Restart Windows
A restart can finish pending system changes.
Install Windows Updates
Open:
Settings > Windows Update
Check for available updates.
Installing current Windows updates can resolve compatibility problems.
Check Virtualization
WSL 2 relies on virtualization capabilities.
If WSL reports a virtualization-related problem, check your computer’s firmware settings and Windows configuration.
The exact steps vary by manufacturer.
Run WSL Status
Open Windows Terminal and run:
wsl --status
This can provide useful information about your WSL setup.
Update WSL
You can also use:
wsl --update
to update the WSL components when supported by your installation.
How to Start Linux Automatically From Windows Terminal
Once Linux is installed, you can launch it from Windows Terminal.
You can also open the Start menu and select your installed Linux distribution.
For quick access, pin the distribution to Start or the taskbar if your Windows configuration provides that option.
Can You Run Linux and Windows at the Same Time?
Yes, depending on the method.
With WSL, Linux runs alongside Windows, so you can use Windows applications while running Linux commands.
A virtual machine also allows Windows and Linux to run simultaneously.
With dual booting, however, you normally run one operating system at a time. You need to restart the computer to switch between Windows and Linux.
Is Installing Linux on Windows 11 Safe?
Using WSL is generally the least disruptive approach because it doesn’t require replacing Windows or manually repartitioning the system drive.
Virtual machines are also relatively isolated from the main Windows installation.
Dual booting requires more care because you are modifying disk partitions and boot configuration.
Regardless of the method, back up important files before making significant system changes.
Common Linux Installation Mistakes to Avoid
Avoid these mistakes when installing Linux on Windows 11.
Don’t Skip Your Backup
Important files should be backed up before major operating-system changes.
Don’t Choose Random Partitions
During dual-boot installation, carefully review disk and partition options.
Don’t Delete Windows Partitions
If you want to keep Windows, don’t remove its system or recovery partitions unless you know exactly what you’re doing.
Don’t Give a Virtual Machine Too Many Resources
Leaving too little RAM or CPU capacity for Windows can make the computer feel slow.
Don’t Ignore Installation Warnings
Read each installer screen carefully, especially when dealing with storage.
Frequently Asked Questions
Can I install Linux on Windows 11 without removing Windows?
Yes. WSL and virtual machines let you use Linux while keeping your existing Windows 11 installation. Dual booting also keeps Windows installed but requires separate disk space and additional setup.
What is the easiest way to install Linux on Windows 11?
For most beginners, WSL is the easiest method. You can install it through Windows Terminal and then install a supported Linux distribution such as Ubuntu.
Is WSL the same as installing Linux?
WSL provides a Linux environment integrated with Windows rather than replacing Windows with Linux. It is different from installing Linux as a separate operating system through dual booting.
Can I install Ubuntu on Windows 11?
Yes. Ubuntu is available as a Linux distribution that can be installed through WSL, and it can also be installed in a virtual machine or as a separate operating system alongside Windows.
Can I uninstall Linux from Windows 11 later?
Yes. A WSL distribution can be removed from Windows, while a virtual machine can be deleted through its virtualization software. Removing a dual-boot Linux installation requires more careful partition and bootloader management.
Conclusion
Learning how to install Linux on Windows 11 gives you several ways to explore Linux without necessarily giving up Windows. For beginners, Windows Subsystem for Linux is usually the simplest starting point. It lets you run a Linux environment, use Bash commands, install development tools, and work with Linux utilities directly from Windows.
If you want a graphical Linux desktop, a virtual machine is another convenient option. It keeps Linux inside a virtual computer while allowing you to continue using Windows normally.
Dual booting is the most traditional approach, but it requires more technical knowledge because you’ll be working with partitions, boot settings, and installation media.
If you’re new to Linux, start with WSL. You can learn the Linux command line without making major changes to your Windows installation. Once you’re comfortable, you can decide whether a virtual machine or full dual-boot installation better suits your needs.
Key Takeaways
- Windows 11 can run Linux in several ways.
- WSL is usually the easiest option for beginners.
- Ubuntu is a popular Linux distribution for WSL.
- You can install Linux without removing Windows.
- Virtual machines provide a way to use a full Linux desktop inside Windows.
- Dual booting gives Linux direct access to your computer’s hardware but requires more preparation.
- Always back up important files before modifying partitions.
- WSL can access Windows drives through paths such as
/mnt/c. - Windows files can be accessed from WSL through
\\wsl$. - Use
wsl --list --verboseto check installed distributions. - Use
wsl --updateto update WSL when supported. - Choose the installation method based on whether you need Linux commands, a graphical desktop, or a full Linux operating system.