Alright, let’s talk about something really cool that brings the power of Linux right into your Windows 10 machine: the Windows Subsystem for Linux, or WSL for short. It’s a game-changer for developers and anyone who loves to tinker, letting you run a full Linux environment without the hassle of virtual machines. Getting it set up might seem a bit technical at first glance, but trust me, it’s totally manageable, and I’m here to walk you through every single step.
Setting up WSL in Windows 10 involves enabling a couple of Windows features, restarting your computer, and then picking your favorite Linux distribution from the Microsoft Store. You’ll activate the “Virtual Machine Platform” and “Windows Subsystem for Linux” features through PowerShell or the Control Panel, reboot your system, and finally download and install a Linux distro like Ubuntu. After a quick initial setup for your Linux user, you’ll be ready to dive into the command line world.
Tutorial – How to Install WSL in Windows 10
These steps guide you through enabling the necessary Windows features and installing your first Linux distribution, so you can run Linux commands and applications directly on your Windows 10 computer. It’s a straightforward path to unlocking a powerful new tool.
Step 1: Enable the Windows Subsystem for Linux Feature
The very first thing you need to do is turn on the core WSL feature in Windows.
You can do this by searching for “Turn Windows features on or off” in your Windows search bar and then checking the box next to “Windows Subsystem for Linux” in the list that appears. Alternatively, for a quicker approach, open PowerShell as an administrator, which is super easy to do by right-clicking the Start button, and then type dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart and hit Enter. This command effectively tells your computer to activate the WSL component, which is essential for everything else to work.
Step 2: Enable the Virtual Machine Platform Feature
Next, we need to activate another feature called the Virtual Machine Platform, which WSL 2, the newer and better version of WSL, relies on for its enhanced performance and full Linux kernel.
Just as before, you can go back to “Turn Windows features on or off” and check the “Virtual Machine Platform” box, or use PowerShell again. Open an administrator PowerShell window and type dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart, pressing Enter to execute it. This step is crucial because it provides the underlying technology that allows WSL 2 to run its lightweight virtual machine, making your Linux experience much faster and more compatible.
Step 3: Restart Your Computer
After enabling both of these important features, your computer needs a fresh start to apply those changes properly.
It’s like when you install a big program; sometimes it just needs a full reboot to get everything in order. You’ll see a prompt to restart your PC, and it’s definitely best to do it right away. Just click “Restart now” or manually restart your computer. Don’t skip this part, as the features won’t be fully active until your system has had a chance to reload with them enabled.
Step 4: Set WSL 2 as Your Default Version
Now that you’ve enabled the features, it’s a good idea to make sure you’re using the more powerful WSL 2 as your default.
Open PowerShell as an administrator one last time and type wsl --set-default-version 2, then press Enter. This command tells WSL to always use version 2 for any new Linux distributions you install, improving performance and ensuring full system call compatibility. If you don’t do this, new distros might default to WSL 1, and you’d miss out on the improvements.
Step 5: Install Your Chosen Linux Distribution
Finally, it’s time for the fun part: picking and installing your Linux operating system!
Head over to the Microsoft Store, search for “Linux,” and you’ll find a bunch of popular distributions like Ubuntu, Debian, or Kali Linux. Choose the one you like, click “Get,” and then “Install.” Once it’s downloaded, open it from the Start menu. The first time you launch it, it will take a few minutes to install, and then it will ask you to create a username and password for your new Linux environment.
After you’ve completed these steps, your chosen Linux distribution will be fully installed and ready to use. You’ll be greeted by its command-line interface, where you can run Linux commands, install software, and do all sorts of development work, all directly integrated with your Windows environment. It’s a seamless blend of two powerful operating systems.
Tips for Installing WSL in Windows 10
- Always run PowerShell as an administrator when enabling features or setting WSL versions, as these commands require elevated permissions to make system changes.
- Make sure your Windows 10 is fully updated before starting the installation process, as older versions might not support WSL 2 or could have compatibility issues.
- If you encounter any issues, try searching Microsoft’s official WSL documentation, as it’s a great resource for troubleshooting common problems.
- Don’t be afraid to experiment with different Linux distributions; Ubuntu is popular and a great starting point, but others like Debian or Kali Linux offer different features and communities.
- Remember that your Linux files are separate from your Windows files, though you can access your Windows drives from within WSL, usually located under
/mnt/cfor your C drive.
Frequently Asked Questions About Installing WSL in Windows 10
What is WSL, and why would I want it?
WSL, or Windows Subsystem for Linux, lets you run a full Linux command-line environment directly on Windows 10 without the overhead of a traditional virtual machine or dual-boot setup. You’d want it if you’re a developer, a system administrator, or just someone who needs to use Linux tools and utilities while still working primarily on Windows. It’s super convenient for web development, scripting, and various command-line tasks.
Do I need to uninstall my current Linux virtual machine before installing WSL?
No, you don’t need to uninstall any existing Linux virtual machines you might have. WSL operates independently and won’t interfere with other virtualization software like VirtualBox or VMware. You can have both running on your system if you want, using whichever environment suits your task at the moment.
Can I run graphical Linux applications with WSL?
Yes, you absolutely can! While WSL traditionally focuses on the command line, recent updates have enabled running graphical Linux applications, also known as GUI apps, directly on your Windows desktop. This feature, called WSLg, is usually included by default in the latest versions of WSL 2, offering a much more complete Linux experience.
What’s the difference between WSL 1 and WSL 2?
The main difference lies in their architecture. WSL 1 translates Linux system calls into Windows system calls, which can sometimes lead to compatibility issues or slower performance for certain tasks. WSL 2, on the other hand, uses a real Linux kernel running in a lightweight utility virtual machine, offering significantly better performance, full system call compatibility, and faster file system operations. It’s generally recommended to use WSL 2.
How do I update my Linux distribution within WSL?
Updating your Linux distribution inside WSL is just like updating a regular Linux system. Once you open your WSL terminal, you can use the package manager commands specific to your distro. For example, if you’re using Ubuntu, you would typically type sudo apt update to refresh the package lists, and then sudo apt upgrade to install any available updates for your installed software. It’s a good practice to do this regularly.
Summary of WSL Installation
- Enable Windows Subsystem for Linux feature.
- Enable Virtual Machine Platform feature.
- Restart your computer.
- Set WSL 2 as your default version.
- Install your chosen Linux distribution from the Microsoft Store.
Conclusion
So there you have it, a complete rundown on how to install WSL in Windows 10. By following these steps, you’ve unlocked a truly powerful capability that brings the best of both worlds right to your fingertips. Think about it: you can continue to enjoy your favorite Windows applications and familiar desktop environment, but now you also have a full-fledged Linux command line, complete with all its robust tools and flexibility, just a click away. It’s like having a secret superpower for your computer!
This isn’t just a minor convenience; for many, it’s a fundamental shift in how they work. Developers can compile code, run scripts, and manage servers using the same Linux tools they’d find on a dedicated Linux machine, without ever leaving their Windows desktop. Students can experiment with Linux environments for learning or projects without the complexity of setting up virtual machines from scratch. The integration is surprisingly seamless; you can even access your Windows files directly from your Linux terminal, making it incredibly easy to bridge your workflows.
Remember that while these steps get you up and running, the journey into Linux is just beginning. There’s a vast ecosystem of commands, tools, and applications waiting for you to explore. Don’t be afraid to dive into the documentation for your chosen Linux distribution, join online communities, and experiment with different commands. That’s how you truly master these powerful systems. If you ever hit a snag, a quick search online for “how to install WSL in Windows 10” or specific error messages will almost always lead you to a solution, thanks to the massive community that supports both Windows and Linux. The ability to run Linux on Windows 10 is a testament to the open nature of modern computing, and you’re now a part of it. Enjoy your new dual-powered workstation!

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.