Connect with us

Business

How to install Windows Subsystem for Linux in Windows 11

Want the Windows Subsystem for Linux? Start here.

windows 11 logo
Image: Microsoft
Giveaway: Enter to win a BLUETTI Charger 1 ($399 value): Enter Here

Just a heads up, if you buy something through our links, we may get a small share of the sale. It’s one of the ways we keep the lights on here. Click here for more.

Windows has had some level of support for running Linux since 2016 when the Windows 10 Anniversary Update came out.

It was a pain in the butt to get working at that time though, but with the second version of the Windows Subsystem for Linux in 2019, things became much more user-friendly. Now that Windows 11 is out, and it’s even easier to get Linux running on your Windows desktop.

We’ll show you how, and also how to install a different flavor of Linux if you don’t want the default, which is Ubuntu. All you need is a computer running Windows 11, and a few minutes.

Want the Windows Subsystem for Linux? Start here

windows subsystem for windows 11
Image: KnowTechie
Launch PowerShell or Command Prompt as an administrator. The easiest way is to search for “Powershell” or “command prompt” then choose the Run as Administrator option from the search termswindows powershell on start menu
Type wsl –install and hit Enter
That will install any services WSL needs, the utility itself, and also download and install Ubuntu, which is the default Linux distribution, or distro, that Windows uses. You can change the Linux version later on if you prefer another distro.

None of this will be usable until you reboot your PC, so…
Restart your PC. Wait until the notification that says WSL is installed, then restart.
When you’re back on the desktop, you’ll get a window that pops up saying it’s installing WSL and Ubuntu. Once it’s finished, you’ll get a prompt to create a username and password for WSL use. We suggest not to use your Windows credentials here, as they will only be used when in the WSL.

To install a different Linux distro

Open a command window as an administrator (as in step 1) then type wsl –list –online
You’ll get a list of options that can be downloaded and installed for you. At the time of writing, this includes Ubuntu, Debian, kali-linux, openSUSE, and SUSE.
To install one, type wsl –install -d <distro> where distro is the FRIENDLY NAME from the list. We’re installing hacker favorite kali-linux here

You can also install Linux from the Microsoft Store

Open the Microsoft Store and search for Linux. microsoft store showing linux options
Click on the distro you want, and then click Install

Now you’ve got a Linux distro installed in the Subsystem for Linux. Have fun learning the command line!

Have any thoughts on this? Let us know down below in the comments or carry the discussion over to our Twitter or Facebook.

Editors’ Recommendations:

Follow us on Flipboard, Google News, or Apple News

Maker, meme-r, and unabashed geek with nearly half a decade of blogging experience at KnowTechie, SlashGear and XDA Developers. If it runs on electricity (or even if it doesn't), Joe probably has one around his office somewhere, with particular focus in gadgetry and handheld gaming. Shoot him an email at joe@knowtechie.com.

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Business