Hey there, tech explorers! Want to run Linux right inside Windows 10 without all the hassle of virtual machines? You’re in the right place. Enabling Windows Subsystem for Linux, or WSL, is actually pretty straightforward. We’ll walk you through enabling a couple of optional Windows features, then show you how to install your favorite Linux distribution from the Microsoft Store. It’s like unlocking a secret superpower for your PC, letting you enjoy the best of both worlds. Ready to dive in and get your Linux environment up and running in no time?
Tutorial – How to Enable WSL in Windows 10
Alright, let’s get down to business. These steps will guide you through activating the necessary components in Windows 10 so you can start using Linux commands and tools directly from your machine. It might seem like a few clicks, but trust me, it’s worth every single one for the power you’re about to unleash.
Step 1: Enable the Windows Subsystem for Linux feature.
This is your first move, like flipping the main switch for the whole operation. You’ll need to open “Turn Windows features on or off” by searching for it in your Start menu. Once there, find the box labeled “Windows Subsystem for Linux” and make sure it has a checkmark. This tells Windows to get ready for some Linux action.
Step 2: Enable the Virtual Machine Platform feature.
Now, if you want the very best performance and compatibility, you’ll definitely want to use WSL 2, which is a big upgrade. To do that, you also need to enable “Virtual Machine Platform” in the same “Turn Windows features on or off” window. Check this box too, because WSL 2 uses some virtualization tech under the hood, even though it doesn’t feel like a traditional virtual machine.
Step 3: Update to the WSL 2 Linux kernel.
After enabling those features, you might need to grab a small update to make sure everything runs smoothly with WSL 2. Head over to your web browser and search for “WSL 2 Linux kernel update package” or look it up on Microsoft’s official WSL documentation page. Download and install this package, just like you would any other program, to ensure your system has the latest kernel for optimal performance.
Step 4: Set WSL 2 as the default version.
To make sure all future Linux distributions you install automatically use the faster WSL 2, you need to tell Windows to make it the default. Open up Command Prompt or PowerShell as an administrator, and type in wsl --set-default-version 2. This command ensures that any new distros you install will benefit from WSL 2’s enhancements right away.
Step 5: Install a Linux distribution from the Microsoft Store.
With all the groundwork laid, it’s time for the fun part: picking your flavor of Linux! Open the Microsoft Store and search for “Linux” or a specific distribution, such as “Ubuntu,” “Debian,” or “Kali Linux.” Once you find the one you want, simply click “Get” or “Install,” and Windows will handle the rest. After it installs, you can launch it directly from your Start menu, and you’ll be prompted to create a username and password for your new Linux environment.
Once you’ve completed these steps, you’ll have a fully functional Linux environment running harmoniously on your Windows 10 machine. You can open your chosen Linux distribution like any other app, run commands, develop software, and access all the powerful tools Linux offers, all without ever leaving your familiar Windows desktop. It’s truly the best of both worlds, right at your fingertips.
Tips for Enabling WSL in Windows 10
- Restart Your PC: Always restart your computer after enabling Windows features. This makes sure all changes take effect properly and can prevent weird issues later on.
- Check for Windows Updates: Make sure your Windows 10 is fully updated before starting. Sometimes, older versions might not support WSL 2 or have glitches that newer updates fix.
- Administrator Privileges are Key: When you’re running commands in Command Prompt or PowerShell, always open them as an administrator. Many WSL commands require elevated permissions to work correctly.
- Explore Different Distributions: Don’t feel stuck with just one Linux distro. The Microsoft Store offers several, like Ubuntu, Debian, or openSUSE. Each has its own strengths, so try a few to see which one fits your needs best.
- Learn Basic Linux Commands: Once your distro is installed, spend a little time learning fundamental Linux commands. Things like
ls,cd,pwd,sudo apt update, andsudo apt upgradewill be your best friends for navigating and managing your Linux environment. - Integrate with VS Code: If you’re a developer, consider installing Visual Studio Code. It has excellent remote development extensions that let you work on files directly in your WSL distribution, making for a super-smooth workflow.
Frequently Asked Questions About WSL
What’s the difference between WSL 1 and WSL 2?
WSL 1 uses a compatibility layer to translate Linux system calls into Windows system calls, which is pretty clever but can be slower for certain operations. WSL 2, on the other hand, runs a real Linux kernel inside a lightweight virtual machine. This makes it much faster, especially in terms of file system performance, and offers full system call compatibility. You definitely want WSL 2 if your system supports it.
Can I run graphical Linux applications with WSL?
Yes, you absolutely can! While WSL traditionally focused on command-line tools, Microsoft added support for running graphical Linux apps with WSLg. If you’re on a recent version of Windows 10 (or 11), you can install a graphical app within your WSL distro, and it will launch right on your Windows desktop, complete with sound and GPU acceleration.
Do I need to pay for WSL or Linux distributions?
No, WSL itself is a free feature included with Windows 10, and most popular Linux distributions available in the Microsoft Store, such as Ubuntu and Debian, are also free. You get access to powerful tools at no extra cost, which is pretty neat, if you ask me.
How do I access my Windows files from WSL, and vice-versa?
It’s super easy! From your WSL terminal, you can access your Windows drives under the /mnt/ directory. For example, your C: drive would be at /mnt/c/. To go the other way, you can type explorer.exe . (with the dot) in your WSL terminal to open the current Linux directory in File Explorer, or navigate to \wsl$ in File Explorer to see all your installed Linux distributions.
My WSL installation isn’t working, what should I do?
First, try restarting your computer. If that doesn’t work, double-check that both “Windows Subsystem for Linux” and “Virtual Machine Platform” features are enabled and that you’ve installed the WSL 2 kernel update. Ensure you’re running PowerShell or Command Prompt as an administrator when using WSL commands. Sometimes, checking for Windows updates can also resolve underlying issues. The official Microsoft WSL documentation is a fantastic resource if you hit a real snag.
Summary of WSL Enabling Steps
- Enable Windows Subsystem for Linux feature.
- Enable Virtual Machine Platform feature.
- Update to WSL 2 Linux kernel.
- Set WSL 2 as default version.
- Install Linux distribution from Microsoft Store.
Final Thoughts on WSL
Wow, you made it! If you’ve followed along, you’ve now successfully learned how to enable WSL in Windows 10, unlocking a whole new level of power and flexibility for your computing experience. It’s truly amazing how far Windows has come in embracing the open-source world, isn’t it? Gone are the days of fumbling with dual-boot setups or resource-heavy virtual machines just to get a taste of Linux. Now, it’s just a few clicks away, integrating seamlessly into your existing Windows workflow.
Think about the possibilities! Developers can use familiar Linux command-line tools, scripts, and frameworks directly on their Windows machines, making cross-platform development a breeze. Students can experiment with different Linux environments without the fear of messing up their main operating system. Even curious users can explore the vast ecosystem of Linux applications and utilities, expanding their technical horizons without commitment. It’s like having a superhero sidekick, a powerful Linux machine, always ready to jump into action right there on your desktop.
But enabling WSL is just the beginning of your journey. The real fun starts when you dive deeper into your chosen Linux distribution. Spend some time exploring the terminal, installing packages, and customizing your environment. You’ll find a vibrant community ready to help, along with countless online tutorials and resources to guide you. Don’t be afraid to experiment, that’s how we learn and grow.
I encourage you to keep exploring, keep learning, and keep pushing the boundaries of what your Windows machine can do. WSL isn’t just a feature, it’s a bridge between two powerful operating systems, giving you the best of both worlds. So go ahead, launch your Linux terminal, and start building something amazing. The world of open-source is now literally at your fingertips, waiting for you to discover its potential. Happy computing, and enjoy your newfound Linux prowess!

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.