Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Windows Subsystem for Linux allows you to run Linux shell commands from your Windows PC. This guide offers 3 methods to enable WSL in Windows 10.

Step 1: Enable WSL in Windows 10

Use one of the methods below to enable WSL. Then, proceed to step 2 to download and install the L

Method 1: Enable WSL From Control Panel

Here is the first method to enable Windows Subsystem for Linux in Windows 10:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Type control panel in Windows 10 search bar. Then click it from the search results.
Enable Windows Subsystem for Linux in Windows 10 from Control Panel
  • When Control Panel opens confirm that View by is set to Category. If not click the drop-down and select Category.
Enable Windows Subsystem for Linux in Windows 10 from Control Panel
  • At Programs and Features, click Turn Windows features on or off. A new pop up window will open. If the Windows Features pop window is too small, you can expand it (see the second image below).
Enable Windows Subsystem for Linux in Windows 10 from Control Panel
This image has an empty alt attribute; its file name is image-241.png
  • Then, at the Windows Features pop up screen, locate Windows Subsystem for Linux and click the check box beside it. To enable the feature, click OK
  • Windows will begin enabling the feature…
  • When it is completed, click Restart now.

Method 2: Enable WSL with Command Line

Another option is to use DISM command line to enable this feature.

Popular on Amazon
AreMe USB C Adapter (6 Pack), Micro USB Male to USB C Female Adapter | USB 3.0 to Type C Converter Connector
  • 【USB C Male to USB 3.0 Female Adapter】Convert the USB C port of the PC, laptop or other devices to a USB A port, and then connect the flash drive or other standard USB A device. It can also provide a maximum data transfer rate of 5Gbps.
  • 【USB 3.0 Male to USB C Female Adapter】Convert the USB A port of the laptops, chargers, or other devices to a USB C port, so you can connect USB C peripherals to devices. It can also provide a maximum data transfer rate of 5Gbps.
  • 【Micro USB Male to USB C Adapter】Allows you to use USB Type C cable to charge and transfer data for Micro USB mobile devices, which helps to reduce the number of cables you carry with you. Supports up to 2.4A of power and provides a maximum data transfer rate of 480Mbps.
  • 【Compact and Easy to Use】The adapters are made of space gray aluminum alloy and black plastic, ultra thin size, ultra compact design, fine appearance details and strict quality inspection standards. And does not require additional drivers and software, plug and play.
  • 【What you'll get】2 x micro USB male to USB C adapter, 2 x USB male to USB C adapter, 2 x USB C male to USB adapter. And they can be connected to each other for charging and data transfer.

Here are the detailed steps:

  • Type cmd in search bar. Then beneath Command Prompt, click Run as Administrator.
Enable Windows Subsystem for Linux in Windows 10 with Command Line
  • To display the feature name for the Windows Optional feature you wish to enable, type the command below. Then press enter.
 DISM.exe /Online /Get-Features | find "linux" 

Here is the result of the command in command prompt..

Enable Windows Subsystem for Linux in Windows 10 with Command Line
  • To enable the feature, type this command and press enter.
Dism /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All 

DISM will start enabling the feature…Wait for it the reach 100% and report success…

Also popular on Amazon
Liaoan USB A to USB C 3.0 OTG Adapter, USB C to Micro Converter, IP to Type-C Converter, and Type-C to USB A OTG 3.0 Adapter (6 Pieces), Supporting Fast Charging and Data Transfer
  • 【USB male to USB C female adapter】:USB to USB C3.0 adapter can convert devices such as computers, laptops, chargers, etc. into USB C interfaces, connecting various devices such as flash drives, portable hard drives, chargers, etc. It can also provide a maximum data transfer speed of 5Gbps and 3A fast charging.
  • 【Micro USB Male to USB Female Adapter】:USB C to Micro adapter. Supports charging and data transmission for various small household appliances and electronic devices with micro interfaces, with a data transmission rate of 480Mbps for 18W high-power fast charging.
  • 【IP Male to USB C Female Adapter】:Supports mobile phones, tablets, and Pod series devices. Supports 30W fast charging and data transfer, with a data transfer speed of 480Mbps (headphones are not supported).
  • 【USB C Male to IP Female Adapter】:The USB C adapter can convert IP socket cables into USB C sockets, plug and play, helping to reduce the number of cables you carry. Provides up to 60W fast charging and 480Mbps data transmission (does not support headphones).
  • 【USB C240W Data Cable 】:The USB C data cable supports up to 10Gbps transmission rate and 240W high-power charging. It can complete file transfer and fast charging in a short period of time, with faster working speed.
  • The feature installation requires a restart. To restart your PC, at the prompt, type Y.
  • Your PC will restart and start installing Windows Subsystem for Linux.
Enable Windows Subsystem for Linux in Windows 10 with Command Line

Method 3: Enable WSL with PowerShell

The final option to enable the Linux Subsystem is via PowerShell.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Here are the steps…

  • Type powershell in search bar. Then beneath Windows PowerShell, click Run as Administrator.
Enable Windows Subsystem for Linux in Windows 10 with PowerShell
  • To display the name for the Linux subsystem, type the command below. Then press enter.
Get-WindowsOptionalFeature -Online | Where-Object {$_.FeatureName -like "*linux"} | Format-Table 

Here is the result of the command in PowerShell with the feature status showing as “Disabled”.

Also popular on Amazon
Multi Charging Cable 4 in 1 Multi USB Charger Cable Retractable Universal Multiple USB Charging Cord Adapter with Mini USB/IP/Micro USB/Type C Port for PS3/Samsung Galaxy/LG/HTC More [2Pack/3Ft]
  • [Retractable Charger for Multiple Devices] 4 in 1 Pro Content: Simplify your life with the ultimate retractable charger. This 4 in 1 charging cable is the perfect multi charging cable for your modern tech, acting as a high-speed retractable phone charger for both iPhone 17/16/15/14 and Android. One retractable charging cable replaces a tangled mess of cords, keeping your space clean and efficient.
  • [Retractable Car Charger] Travel & Road Trip Essential Content: The ideal retractable car charger for family road trips. This retractable phone charger for car features an adjustable 3.3ft length that reaches every passenger. As a versatile multi charger cable, it allows kids to power up their PS3 controllers or handheld games in the back seat while you use the retractable usb c cable for navigation. Its compact design fits perfectly in any console without extra clutter.
  • [Mini USB Cable & PS3 Charger] Unique Legacy Support Content: Unlike standard 3 in 1 charging cables, our upgraded version includes a mini usb cable. It’s the go-to mini usb charger for your dashboard camera and the most reliable ps3 controller charger on the market. This universal charging hub is also a dedicated zune charger cable, ensuring your favorite older gadgets stay powered and ready.
  • [Retractable USB C Charger] Wide Compatibility Hub Content: Experience ultra-fast syncing with our retractable usb c charger. Designed to be a universal usb adapter, it works as a retractable iP cable for older iPhones and a micro usb cable for Kindle or micro-B devices. These charging cables for multiple devices are engineered to handle high current, making them the only charging cords for multiple devices you’ll need at home or in the office.
  • [2-Pack Value Set] Durable Retractable USB Cord Content: Get a 2-Pack of 3.3ft multi charger cables that deliver value and reliability. This retractable cord charger set is built with a reinforced foldable pin usb charger mechanism for daily use. Whether you need a retractable phone cord for your bedside or a charger with multiple connectors for your laptop bag, we ensure your universal charging experience is seamless.
  • To enable the feature, type this command and press enter.
Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All 
  • The feature installation will start…
  • When the feature installation is completed, you will be prompted to restart your PC. At the restart prompt, type Y. Then press enter.

Step 2: Install a Linux Distribution

Now that you have enabled Windows Subsystem for Linux, the final step to enable Linux shell in Windows 10 is to download your preferred Linux distro from Windows store.

Here are the detailed steps:

  • Open Microsoft Store page for your favorite Linux distribution. To open the Microsoft store page for a distribution, click the link below (all links open in a new browser tab):
  1. Ubuntu 16.04 LTS
  2. Ubuntu 18.04 LTS
  3. OpenSUSE Leap 15
  4. OpenSUSE Leap 42
  5. SUSE Linux Enterprise Server 12
  6. SUSE Linux Enterprise Server 15
  7. Kali Linux
  8. Debian GNU/Linux
  9. Fedora Remix for WSL
  10. Pengwin
  11. Pengwin Enterprise
  12. Alpine WSL
  • For this demo I will download Ubuntu 18.04 LTS. When the link opens, click Get.
  • Then if prompted, click Open Microsoft Store.
  • When the App opens in Microsoft Store, click Get.
  • If you are not signed to a Microsoft account you will be prompted to sign in. This is optional. To use the app on the device alone, click No, thanks.
  • The Linux distribution will start downloading…
  • When the download is completed, click Launch. Linux installation will start. (See the second image).
  • When prompted, type a username. Then press enter.
Use all lowercase for your username.
  • At the password prompt, type a password for the previous user and press enter. Then retype the password and press enter again. Your installation is ready to go!
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Conclusion

To run Linux commands in Windows 10 you need to complete 2 tasks:

Also popular on Amazon
Elebase USB C Charger Adapter Kit with 1Ft 100W Cable for iPhone 18 Pro Max | 6 in 1 Multi Travel Set,USB C Charging Cord,USB 3.2 OTG Converter,Type C to iOS Micro Adaptor,Portable Card Storage,Eject Pin
  • All-in-One Convenience: Our Multi-Functional Charging Kit provides an all-in-one solution for your everyday charging and connectivity needs. With a comprehensive set of adapters and a USB-C to USB-C cable, this kit helps keep you prepared, whether at home, in the office, or on the go
  • Fast and Efficient Charging: The included USB-C to USB-C cable supports 100W power delivery, meeting most charging needs for laptops, tablets, and smartphones. While using adapters may reduce charging speed slightly, they significantly enhance your device connectivity options.
  • Aluminum-Alloy Build and Refined Style: Each adapter features a sleek aluminum-alloy shell, combining a refined appearance with solid metal construction. The USB-C to USB-C cable has a soft, smooth-touch silicone coating that provides a comfortable grip. The case with an aluminum-alloy top not only protects your gear but also adds a touch of sophistication.
  • Travel-Friendly Design: This kit includes a SIM card ejector tool and a dedicated slot for your SIM cards, making it convenient for travel. The round case, measuring 9.3 cm (3.7 inches) in diameter and 1.2 cm (0.5 inches) in thickness, fits easily into bags, backpacks, or large pockets, keeping everything compact and organized.
  • Wide Compatibility: The kit features a USB-C Male to USB A Female Adapter (USB 3.2 / 10Gbps), a USB-A Male to USB-C Female Adapter, a USB-C Female to Micro USB Adapter, and a USB-C Female to IOS Male Adapter, ensuring compatibility with a wide range of devices. Stay connected no matter what device you’re using.
  • Enable Windows Subsystem for Linux Windows Optional Feature
  • Download and install your preferred Linux distro from the Windows store.

If you have completed these two steps you should be able to enjoy Linux right from your Windows 10 PC.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

I hope you found this Itechguide helpful. If it was helpful, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

For more Windows guides visit our Windows How To page.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.