Ever thought about diving into the world of Linux without having to leave your trusty Windows 10 setup? Well, good news: you absolutely can, and it’s easier than you might think thanks to something called the Windows Subsystem for Linux, or WSL for short. This cool feature lets you run a full Linux environment directly within Windows, giving you access to all those powerful command-line tools and applications without needing to mess with dual-booting your computer. We’re going to enable WSL, update it, and then pick out a Linux distribution, like Ubuntu, right from the Microsoft Store. After a quick install and setting up a user account, you’ll be ready to start exploring a whole new operating system world right from your familiar Windows desktop.
How to Install Linux in Windows 10: Your Step-by-Step Guide
Getting Linux up and running inside your Windows 10 machine is a fantastic way to expand your technical horizons without the hassle of completely switching operating systems. We’re going to walk through the exact steps to enable the necessary Windows features, set up the latest version of WSL, and finally install your chosen Linux distribution. It’s like adding a powerful new engine to your existing car, giving you more options and capabilities.
Step 1: Enable Windows Subsystem for Linux
First things first, you need to turn on the feature that makes all of this possible. This is a built-in Windows component.
Open up your Windows search bar, type “Turn Windows features on or off,” and click on the result. A new window will pop up with a list of checkboxes. Scroll down until you find “Windows Subsystem for Linux” and make sure the box next to it is checked. This is the foundational piece we need.
Step 2: Enable Virtual Machine Platform
For the best performance and compatibility, especially if you want to use graphical Linux apps later, we’ll want to use WSL 2. WSL 2 relies on a virtual machine platform.
In that same “Turn Windows features on or off” window from Step 1, locate “Virtual Machine Platform” and put a checkmark in its box as well. Enabling this feature ensures that WSL 2 has all the resources it needs to run smoothly and efficiently, giving you a faster, more integrated experience.
Step 3: Restart your computer
For these changes to really take hold, your computer needs a fresh start. Think of it like rebooting after installing a big update.
Once you’ve checked both boxes, click “OK,” and Windows will likely prompt you to restart your computer. Don’t skip this step, as the features won’t be fully enabled until you’ve done so. Go ahead and let it reboot, then come back to finish the process.
Step 4: Update the WSL kernel
To get the latest and greatest version of WSL, you’ll need to download a small update. This ensures you have the most recent bug fixes and performance enhancements.
Open your web browser and search for “WSL 2 Linux kernel update package” or go directly to Microsoft’s documentation page for WSL installation. You’ll find a download link for an .msi file. Download it and run the installer. It’s a quick process; just follow the prompts and click “Next” until it’s done.
Step 5: Set WSL 2 as the default version
Now that you have the kernel update, you need to tell Windows to use WSL 2 by default for any new Linux installations. This is a simple command.
Open your Windows search, type “cmd,” and launch “Command Prompt” as an administrator. In the Command Prompt window, type wsl --set-default-version 2 and press Enter. You should see a message confirming the operation completed successfully. If you get a message about needing to enable the Virtual Machine Platform, go back to Step 2.
Step 6: Choose and install a Linux distribution
With WSL ready to go, it’s time for the fun part: picking your flavor of Linux! The Microsoft Store makes this super easy.
Open the Microsoft Store, which is usually pinned to your taskbar or easily found by searching. In the store, search for “Linux” or specific distributions like “Ubuntu,” “Debian,” or “Kali Linux.” Pick one that sounds interesting to you, click on it, and then click “Get” or “Install.” It will download and install just like any other app.
Step 7: Launch your Linux distribution and create a user
You’re almost there! Once the installation from the Microsoft Store finishes, it’s time to fire up your new Linux environment for the first time.
You can launch your installed Linux distribution directly from the Microsoft Store page by clicking “Launch,” or you can find it in your Start menu under its name, like “Ubuntu.” The first time it runs, it will take a moment to set itself up. You’ll then be prompted to create a new UNIX username and password. This is your login for the Linux environment, separate from your Windows account. Choose something secure and remember it!
Once you’ve completed these steps, you’ll have a fully functional Linux command-line environment running directly within Windows 10. You can now open your chosen Linux distribution, and you’ll be greeted by a terminal ready for you to type in Linux commands, install software using Linux package managers, and explore a whole new world of tools. It’s like having two powerful computers in one, allowing you to seamlessly switch between Windows and Linux tools without any rebooting or complex setups.
Essential Tips for Installing Linux in Windows 10
Here are some helpful pointers to make your WSL experience even better and smoother.
- Always keep your Windows 10 operating system up to date. Microsoft frequently releases WSL updates, and having the latest Windows version ensures you get all the benefits and bug fixes.
- Consider using Windows Terminal for a superior experience. It’s a free app from the Microsoft Store that lets you manage multiple command-line interfaces, including Command Prompt, PowerShell, and all your WSL distros, in a single, tabbed window.
- Don’t be afraid to experiment with different Linux distributions. While Ubuntu is a great starting point, Debian, Fedora, and OpenSUSE are also available in the Microsoft Store, each offering a slightly different experience.
- Remember that your Linux files are stored separately from your Windows files, but you can easily access your Windows drives from within WSL. Look for them mounted under
/mnt/c,/mnt/d, and so on. - Learn some basic Linux commands. Commands like
ls(list files),cd(change directory),sudo apt update(update packages on Debian/Ubuntu), andman(manual for commands) will quickly become your best friends. - Backup any critical data before making major system changes, even though WSL is generally safe. It’s always a good practice, just in case something unexpected happens.
- If you encounter issues, check Microsoft’s official WSL documentation. It’s incredibly comprehensive and a fantastic resource for troubleshooting and advanced configurations.
Frequently Asked Questions About Installing Linux in Windows 10
Can I run graphical Linux applications with WSL?
Yes, you absolutely can run graphical Linux applications, also known as GUI apps, using WSL! Microsoft has added official support for this, called WSLg. This means you can install a Linux desktop application, like GIMP or Firefox, within your WSL distribution, and it will launch and display on your Windows desktop just like a native Windows application. It’s a game-changer for many users.
Do I need to dual-boot my computer to use Linux with Windows 10?
No, that’s the beauty of the Windows Subsystem for Linux! You do not need to dual-boot. WSL allows you to run a full Linux environment directly on top of your existing Windows installation, without partitioning your hard drive or rebooting your computer to switch between operating systems. It’s a seamless integration that saves a lot of hassle.
Which Linux distribution should I choose for WSL?
For most beginners, Ubuntu is an excellent choice. It’s widely popular, has a huge community, and tons of online resources and tutorials are available for it. Other great options available in the Microsoft Store include Debian, Kali Linux (great for security testing), and SUSE Linux Enterprise Server. You can even install multiple distributions to try them out!
How do I access my Windows files from within my Linux distribution?
Accessing your Windows files from your WSL Linux environment is quite straightforward. Your Windows drives are automatically mounted and accessible. For example, your C drive will typically be found under /mnt/c within your Linux terminal. So, if you wanted to navigate to your Windows Documents folder, you might type cd /mnt/c/Users/YourWindowsUsername/Documents.
Is WSL secure to use?
Yes, WSL is generally secure. It runs within a sandbox-like environment provided by Windows, meaning that any operations performed within your Linux distribution are largely contained and don’t directly interfere with your core Windows operating system files. Of course, like any operating system, keeping both Windows and your Linux distribution updated is crucial for maintaining security.
What is the main difference between WSL 1 and WSL 2?
The biggest difference between WSL 1 and WSL 2 lies in how they interact with your computer’s hardware. WSL 1 used a compatibility layer to translate Linux system calls to Windows, which was good but not always perfect. WSL 2, on the other hand, uses a real Linux kernel running inside a lightweight virtual machine. This gives WSL 2 much better performance, full system call compatibility, and support for things like Docker and graphical applications, making it the recommended version for most users.
Quick Summary of Linux Installation in Windows 10
- Enable Windows Subsystem for Linux.
- Enable Virtual Machine Platform.
- Restart your computer.
- Update the WSL kernel.
- Set WSL 2 as the default.
- Install a Linux distribution.
- Launch Linux and create a user.
Wrapping Up Your Linux Journey in Windows 10
Congratulations, you’ve just unlocked a whole new dimension on your Windows 10 machine! The ability to install Linux in Windows 10 using WSL is truly a game-changer, especially for developers, IT professionals, and anyone curious about the vast world of open-source software. You’re no longer confined to choosing one operating system over the other; instead, you get to enjoy the best of both worlds, side-by-side, without any of the traditional headaches of dual-booting. Think of your computer now as a powerful hybrid vehicle, capable of navigating both the familiar highways of Windows and the exciting, open roads of Linux with equal ease.
This integration means you can use powerful Linux command-line tools like grep, awk, sed, or even entire development environments, all while having access to your favorite Windows applications like Microsoft Office or Adobe Photoshop. It’s a level of flexibility that was once a pipe dream for many. We’ve talked about how to install Linux in Windows 10, walking you through each step, from enabling core features to picking your first distribution. Now, the real adventure begins. Don’t be afraid to experiment, explore, and get your hands dirty with the Linux command line. There’s a vibrant community out there ready to help, and countless resources to learn from. Dive into package managers, try out different shells, and see how much more productive you can become by leveraging the combined power of Windows and Linux. This isn’t just about installing an operating system; it’s about expanding your capabilities and opening doors to new possibilities. So, go ahead, launch that Linux terminal, and start your journey! The world of open source awaits.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.