Hey everyone, ever wanted to use Linux tools right on your Windows 10 computer without all the hassle of dual-booting or virtual machines? Well, you’re in luck! Installing the Windows Subsystem for Linux, or WSL, is surprisingly easy these days, especially with a super handy command that does most of the heavy lifting for you. Basically, you’ll open a special command window, type one simple command, restart your computer, and then set up a quick username and password for your new Linux environment. It’s truly that straightforward, and before you know it, you’ll have a powerful Linux terminal ready to go on your Windows machine.
Tutorial – How to Install WSL on Windows 10
Getting WSL up and running on your Windows 10 computer is much simpler than it used to be, thanks to a single command that handles almost everything for you. These steps guide you through enabling the necessary features and installing a default Linux distribution, usually Ubuntu, so you can start using Linux commands right away.
Step 1: Open PowerShell as an Administrator
The very first thing you need to do is open a powerful command window called PowerShell with administrative rights.
To do this, click on the Windows Start button, type “PowerShell” into the search bar, and when you see “Windows PowerShell” appear, right-click on it and choose “Run as administrator.” You’ll likely see a pop-up asking for permission; you should accept it. This gives PowerShell the necessary power to make changes to your system, which is crucial for installing WSL.
Step 2: Run the WSL Installation Command
With your administrative PowerShell window open, type the special installation command exactly as you see it here, and then press Enter: wsl --install.
This single command is a game-changer! It automatically enables the required Windows features for WSL, downloads the latest Linux kernel, and installs a default Linux distribution, usually Ubuntu, all in one go. You’ll see some text scroll by as it works its magic, and this process might take a few minutes depending on your internet speed and computer.
Step 3: Restart Your Computer
Once the installation command completes, you’ll be prompted to restart your computer to finalize the changes.
It’s really important to restart your machine after the installation command completes. Think of it like a fresh coat of paint; you need to let it dry completely before you can enjoy it. Restarting ensures that all the new features and components WSL needs are properly set up and ready to go when Windows starts back up.
Step 4: Set Up Your Linux Distribution
After your computer restarts and you log back into Windows, your new Linux distribution will automatically launch a new window.
This is the exciting part where you get to create your Linux user account! The system will ask you to enter a new username and then create a password for that user. These username and password are only for your Linux environment and don’t have to be the same as your Windows login details. Make sure you remember them, especially the password, because you’ll need it for running commands that require special permissions in Linux.
Step 5: Update Your Linux Distribution (Optional, but Recommended)
Once your Linux user is set up, it’s a good idea to update your environment to ensure everything is up to date.
In your Linux terminal, type sudo apt update and press Enter. Then, when that finishes, type sudo apt upgrade and press Enter. The sudo part means you’re running the command with administrator-like privileges within Linux, and apt is the package manager that handles software. These commands fetch the latest updates for all the installed software and security patches, keeping your Linux system healthy and secure.
After you complete these steps, you’ll have a fully functional Linux environment running directly on your Windows 10 computer. You can now open your Linux terminal anytime and start using all those powerful Linux commands and tools you’ve been wanting to explore, without leaving the comfort of Windows.
Tips for Installing WSL on Windows 10
- Always run PowerShell as an administrator when installing WSL or making major configuration changes. This ensures you have the necessary permissions to make system-level adjustments.
- Consider installing Windows Terminal from the Microsoft Store. It’s a fantastic application that lets you manage multiple command-line interfaces, including PowerShell and all your WSL distributions, in one tabbed window, making your workflow much smoother.
- If you want to install a different Linux distribution than the default Ubuntu, you can use
wsl --list --onlineto see available options, and thenwsl --install -dto install a specific one. - Remember that your Windows files are easily accessible from within your WSL distribution. You can find your C: drive, for example, under
/mnt/cin your Linux terminal, making it simple to work with files across both operating systems. - Keep your Linux distribution updated regularly by running
sudo apt updateandsudo apt upgradeinside your WSL terminal. This helps maintain security and ensures you have the latest software features.
Frequently Asked Questions About Installing WSL on Windows 10
What exactly is WSL?
WSL, or Windows Subsystem for Linux, is a super cool feature that lets you run a full Linux command-line environment directly on Windows without the need for a traditional virtual machine or a separate boot. It’s like having the best of both worlds, giving developers and power users access to Linux tools while still using their familiar Windows desktop.
Why would I want to use WSL on my Windows 10 computer?
Many people, especially developers, use WSL to access command-line tools, utilities, and applications that are typically found on Linux systems. It’s perfect for web development, system administration, scripting, and learning Linux without leaving your Windows environment. It truly blends the power of Linux with the convenience of Windows.
Can I run more than one Linux distribution with WSL?
Absolutely! You’re not limited to just one. You can install multiple different Linux distributions, like Ubuntu, Debian, or openSUSE, and run them all side-by-side on your Windows 10 machine. Each one will have its own separate environment and files, which is incredibly handy for different projects or testing.
How do I open the WSL Linux terminal after installing it?
Once installed, you can open your WSL distribution in a few ways. The easiest is to click the Windows Start button, type the name of your distribution, like “Ubuntu,” and click the app that appears. You can also open Windows Terminal, if you have it, and select your Linux distribution from the dropdown menu.
What if the wsl --install command doesn’t work for me?
If wsl --install runs into trouble, it might be because you have an older version of Windows 10 or specific system settings. In such cases, you might need to manually enable the “Virtual Machine Platform” and “Windows Subsystem for Linux” features in the “Turn Windows features on or off” control panel, then install a distribution from the Microsoft Store. Microsoft’s official documentation has detailed manual installation steps if you need them.
Summary
- Open PowerShell as Administrator.
- Run
wsl --install. - Restart your computer.
- Set up Linux username and password.
- Update Linux distribution.
Conclusion
Alright, so there you have it! You’ve successfully navigated the path to bringing the power of Linux right into your Windows 10 machine, and believe me, that’s a pretty big deal. Installing WSL opens up a whole new world of possibilities, giving you the best of both operating systems without the headache of complicated setups. Think of it like this: you’ve just added a supercharged engine to your already reliable car, ready to tackle any journey.
Whether you’re a budding developer looking to dip your toes into command-line tools, a student wanting to learn Linux, or a seasoned professional needing specific utilities, WSL is an invaluable addition to your tech arsenal. You no longer have to choose between Windows and Linux; you get to have both, working together in harmony. You can now run bash scripts, use tools like Git and Docker with native Linux performance, and even develop cross-platform applications, all from your familiar Windows desktop. It truly streamlines workflows and reduces the friction that often comes with different operating environments.
Don’t be afraid to experiment! Dive into your new Linux terminal, try out some basic commands, install new software with apt, and see what amazing things you can build. The community around WSL is huge and incredibly supportive, so if you ever hit a snag, a quick search online will likely lead you to a solution. There are tons of resources, tutorials, and forums dedicated to helping you get the most out of your Windows Subsystem for Linux experience. This isn’t just an installation; it’s an invitation to explore, learn, and expand your computing horizons. So go ahead, unleash the full potential of your Windows 10 machine with WSL and see where your curiosity takes you!

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.