Windows Subsystem for Linux Setup for Windows 10

Windows Subsystem for Linux Setup for Windows 10

Windows Subsystem for Linux (WSL) allows you to install a complete Linux terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving Windows.

To get started with WSL on windows follow these steps:

NOTE: These instructions will work on both Windows 10 and Windows 11.

  1. Installing WSL is now easier than ever. Search for Windows PowerShell in your Windows search bar, then select Run as administrator. Powershell.png

  2. At the command prompt type wsl --install wait for the process to complete.

  3. For WSL to be properly activated, you will now need to restart your computer.

  4. WSL supports a variety of Linux distributions, including the latest Ubuntu release, Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. You can find them by opening the Microsoft Store app and searching for Ubuntu. Ubuntu.png

  5. Choose the distribution you prefer and then click on Get as shown in the following screenshot: GEt.png Ubuntu will then install on your machine.

    NOTE: There is a single command that will install both WSL and Ubuntu at the same time. When opening PowerShell for the first time, simply modify the initial instruction to: wsl --install -d ubuntu. This will install both WSL and Ubuntu! Don’t forget to restart your machine before continuing.

  6. Once installed, you can either launch the application directly from the store or search for Ubuntu in your Windows search bar. Ubuntu search.png

  7. Congratulations, you now have an Ubuntu terminal running on your Windows machine! Ubuntu Terminal.png Once Ubuntu has finished its initial setup you will need to create a username and password (this does not need to match your Windows user credentials).

  8. Finally, it’s always good practice to install the latest updates with the following commands. a sudo apt-get update && sudo apt-get upgrade

That’s it! Enjoy your WSL on Windows.

Did you find this article valuable?

Support Rahul Dabgotra by becoming a sponsor. Any amount is appreciated!