Want to use Linux on your Windows 10 or 11 computer? The Windows Subsystem for Linux (WSL) makes it easy by letting you run Linux right alongside your Windows system.
In this step-by-step guide, we will walk you through the process of enabling WSL and installing a Linux distribution on your Windows machine. Whether you’re a developer, system administrator, or Linux enthusiast, this tutorial will empower you to unlock the versatility of Linux while maintaining the familiarity of your Windows operating system.
Let’s dive into the straightforward steps that will have you up and running with Linux on Windows in no time, here are the steps:
Step 1: Enable WSL from Windows Features
- Open your Windows 10 or 11.
- In the Search box, type “Turn Windows Features ON or OFF”.
- From the search results, open “Turn Windows Features ON or OFF” Options.
Step 2: Enable WSL
- Scroll down the list of optional features to find “Windows Subsystem for Linux”.
- Check the box next to “Windows Subsystem for Linux”.
- Click on the “Install” button when prompted.
- Restart your computer if prompted to do so.
Step 3: Install a Linux Distribution
- After enabling WSL, open Microsoft Store from the Start menu.
- Search for your preferred Linux distribution (e.g., Ubuntu, Debian, Fedora).
- Click on the Linux distribution you want to install.
- Click the “Install” button to download and install the distribution.
Step 4: Set Up a User Account
- Once the installation is complete, launch the installed Linux distribution from the Start menu.
- The first time you run it, it will take a few minutes to set up the new Linux system. You’ll be prompted to create a user account and set a password.
Step 5: Update and Upgrade Packages
- After the initial setup, open the Linux terminal.
- Run the following commands to update the package lists and upgrade installed packages:
sudo apt update
sudo apt upgrade
Step 6: Using Linux on Windows
Now that you have WSL installed, you can use the Linux terminal by launching the installed Linux distribution from the Start menu. You can run Linux commands and install additional packages using the package manager for your chosen distribution (e.g., apt for Ubuntu).
This method enables WSL directly from the Windows Settings, and you can manage WSL versions and distributions through the Settings menu.
Conclusion
Congratulations! You’ve successfully embarked on the journey to bring Linux into your Windows world. With WSL, the synergy between these two powerful operating systems is at your fingertips. Whether you’re exploring Linux for development purposes, system administration, or just curiosity, this guide has equipped you with the essential steps.
As you delve into the Linux terminal on your Windows machine, the possibilities are vast. Feel free to experiment, customize, and make the most of this harmonious integration. If you have questions, insights, or share-worthy experiences, don’t hesitate to leave a comment below. Your feedback is valuable, and we’re here to help you make the most of this dynamic fusion of Windows and Linux.