How to Use Linux Subsystem on Windows 10: A Step-by-Step Guide

Using the Linux Subsystem on Windows 10 allows you to run a Linux environment directly on your Windows machine without the need for a virtual machine. It’s surprisingly simple and involves enabling a Windows feature, installing your preferred Linux distribution from the Microsoft Store, and then setting it up. With these steps, you can get the best of both worlds on your computer.

Step by Step Tutorial: How to Use Linux Subsystem on Windows 10

This tutorial will guide you through enabling the Windows Subsystem for Linux (WSL) feature on your Windows 10 machine, installing a Linux distribution, and configuring it to suit your needs.

Step 1: Open PowerShell as Administrator

To begin, you’ll need to open PowerShell with administrative privileges.

Right-click the Start menu and select “Windows PowerShell (Admin).” This gives you the necessary permissions to enable system features.

Step 2: Enable Windows Subsystem for Linux

Next, you’ll need to run a command to enable WSL.

In the PowerShell window, type wsl --install and press Enter. This command installs WSL and sets up everything you need.

Step 3: Restart Your Computer

After enabling WSL, restart your computer to apply the changes.

A quick reboot ensures that WSL is fully enabled and ready for use. It’s a good habit to save any open work before restarting.

Step 4: Install a Linux Distribution from the Microsoft Store

Head over to the Microsoft Store and choose a Linux distribution to install.

Search for your preferred Linux distribution (like Ubuntu, Debian, or Kali) and click “Install.” The store handles the download and setup process for you.

Step 5: Launch Your Linux Distribution

Once installed, open your new Linux distribution to complete the setup.

Click the Start menu, find your Linux distribution, and open it. You’ll need to create a new user account and password for your Linux environment.

Step 6: Update Your Linux Distribution

Run an update command to ensure your Linux system is up-to-date.

Open the Linux terminal and type sudo apt update && sudo apt upgrade, then press Enter. This ensures you have the latest software and security patches.

Step 7: Start Using Linux Commands

You’re all set! Start using Linux commands directly from your Windows machine.

Experiment with different commands and software installations to get comfortable with your new setup.

After completing all these steps, you’ll have a fully functional Linux environment on your Windows 10 machine. This setup allows you to run Linux commands, install Linux tools, and even develop software in a Linux-native environment, all without leaving Windows.

Tips for Using Linux Subsystem on Windows 10

  • Keep Your System Updated: Regularly update both Windows and your Linux distribution to avoid compatibility issues and security risks.
  • Leverage Windows and Linux Together: Take advantage of the strengths of both operating systems for different tasks. For instance, use Windows for general use and Linux for development.
  • Explore Linux Software: Try out Linux-exclusive software and tools that aren’t available on Windows.
  • Use WSL 2: Consider switching to WSL 2 for better performance and full system call compatibility.
  • Backup Your Data: Regularly back up your Linux files to avoid data loss, especially if you are working on important projects.

Frequently Asked Questions about Using Linux Subsystem on Windows 10

What is WSL?

WSL stands for Windows Subsystem for Linux. It allows you to run a Linux environment directly on Windows.

Do I need a separate installation disk for Linux?

No, you can install Linux distributions directly from the Microsoft Store.

Can I use graphical applications in WSL?

Yes, with WSL 2 and an X server like Xming, you can run graphical Linux applications.

Is WSL free?

Yes, WSL is a free feature included with Windows 10.

What distributions are available for WSL?

Popular distributions like Ubuntu, Debian, Kali Linux, and many others are available in the Microsoft Store.

Summary of Steps

  1. Open PowerShell as Administrator.
  2. Enable Windows Subsystem for Linux.
  3. Restart your computer.
  4. Install a Linux distribution from the Microsoft Store.
  5. Launch your Linux distribution.
  6. Update your Linux distribution.
  7. Start using Linux commands.

Conclusion

Using the Linux Subsystem on Windows 10 bridges the gap between two powerful operating systems, providing a seamless experience for developers, IT professionals, and tech enthusiasts alike. By following the steps outlined, you can easily enable WSL, install your preferred Linux distribution, and start exploring the myriad tools and capabilities Linux offers. Whether you’re dabbling in programming, setting up a development environment, or just curious about Linux, WSL makes it accessible without the need for dual booting or maintaining a separate machine.

If you’re new to Linux, this is a great way to learn and experiment without any significant risk. For seasoned Linux users, WSL offers the convenience of running Linux tools alongside your everyday Windows applications. Dive in, explore, and make the most of your dual-OS setup. For further reading, consider exploring specific Linux commands, setting up development environments, or even trying out different Linux distributions to find the one that best fits your needs.

Get Our Free Newsletter

How-to guides and tech deals

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