How to Install WSL in Windows 10: A Step-by-Step Guide for Beginners

How to Install WSL in Windows 10

Installing Windows Subsystem for Linux (WSL) on Windows 10 is like getting the best of both worlds. You can run a Linux distribution side-by-side with your Windows applications without the need for dual-booting or using a separate virtual machine. In just a few steps, you can have a full Linux environment running on your Windows 10 machine.

How to Install WSL in Windows 10

By following these steps, you’ll install WSL on your Windows 10 system and be able to run Linux commands directly on your PC. Let’s get started!

Step 1: Enable WSL Feature

First, you need to enable the WSL feature on your computer.

Open PowerShell as an administrator by right-clicking the Start button and selecting "Windows PowerShell (Admin)." Once open, type wsl --install and press Enter. This command will enable the WSL feature and download the necessary components.

Step 2: Restart Your Computer

After enabling the feature, you need to restart your computer to apply the changes.

Save any work you have, close all applications, and then restart your computer. When your system boots back up, the WSL feature will be active.

Step 3: Install Your Preferred Linux Distribution

Next, you need to install a Linux distribution from the Microsoft Store.

Open the Microsoft Store app, search for the term "Linux," and choose a distribution that suits your needs—like Ubuntu, Debian, or Kali Linux. Click "Get" and wait for the installation to complete.

Step 4: Launch the Linux Distribution

Once installed, you can launch your Linux distribution from the Start menu.

Click the Start button, search for your installed Linux distribution, and open it. The first time you launch it, it will take a few minutes to set up. You will be prompted to create a new user account and password.

Step 5: Update Your Linux Distribution

After the initial setup, it’s a good idea to update your Linux distribution.

Open your Linux terminal and type sudo apt update && sudo apt upgrade -y to ensure all the packages are up to date. This step keeps your system secure and functioning smoothly.

After completing these steps, you will have a fully functional WSL installation on your Windows 10 computer. You can now use Linux commands and even install Linux applications.

Tips for Installing WSL in Windows 10

  • Enable virtualization in your BIOS settings to enhance performance.
  • Use wsl --set-version [DistributionName] 2 to switch to WSL 2 for better performance and full system call compatibility.
  • You can install multiple Linux distributions and switch between them.
  • Customize your terminal with Windows Terminal app for a better user experience.
  • Use wsl --list --verbose to check the status and version of installed distributions.

Frequently Asked Questions

What is WSL?

WSL stands for Windows Subsystem for Linux. It allows you to run a Linux distribution alongside Windows without needing a virtual machine or dual-boot setup.

Can I run graphical applications on WSL?

Yes, but typically on WSL 2. You may need additional setup, like an X server, to run graphical applications.

Is WSL safe to use?

Yes, WSL is safe to use. It runs in an isolated environment and does not affect your Windows system or files.

How much storage does WSL take?

The storage usage depends on the Linux distribution you install. Typically, it starts from a few hundred megabytes.

Can I uninstall WSL?

Yes, you can uninstall WSL and any Linux distribution you installed via the Microsoft Store by using the "Apps and Features" settings in Windows.

Summary

  1. Enable WSL Feature.
  2. Restart Your Computer.
  3. Install Your Preferred Linux Distribution.
  4. Launch the Linux Distribution.
  5. Update Your Linux Distribution.

Conclusion

Installing WSL in Windows 10 opens up a world of possibilities, especially for developers and tech enthusiasts. With WSL, you can enjoy the flexibility of Linux without leaving the comfort of your Windows operating system. You can run Linux tools and scripts, test software, and even learn more about Linux without needing a dedicated machine or a complex virtual machine setup.

If you’re looking to dive deeper, there are plenty of resources available online to help you get the most out of your WSL experience. Start exploring Linux commands, learn to code in different programming languages, or just have fun tinkering with your new Linux environment. Whatever your goals, WSL is a powerful tool that can help you achieve them. Happy computing!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy