Enable or Disable Windows Subsystem for Linux WSL in Windows 10  

Page 1 of 4 123 ... LastLast
    Enable or Disable Windows Subsystem for Linux WSL in Windows 10

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10

    How to Enable or Disable Windows Subsystem for Linux WSL in Windows 10
    Published by Category: Apps & Features
    11 Nov 2019
    Designer Media Ltd


    How to Enable or Disable Windows Subsystem for Linux WSL in Windows 10


    The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditional Windows desktop and modern store apps.

    This is primarily a tool for developers -- especially web developers and those who work on or with open source projects. This allows those who want/need to use Bash, common Linux tools (sed, awk, etc.) and many Linux-first tools (Ruby, Python, etc.) to use their toolchain on Windows.

    WSL provides an application called Bash.exe that, when started, opens a Windows console running the Bash shell. Using Bash, you can run command-line Linux tools and apps.

    Bash is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in macOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.

    For more details about Windows Subsystem for Linux (WSL) and Bash on Ubuntu, see:

    Windows Subsystem for Linux 2 (WSL2) is now available starting with Windows 10 build 18917.

    This tutorial will show you how to enable or disable the Windows Subsystem for Linux (WSL) feature in Windows 10.


    Contents

    • Option One: Enable "Windows Subsystem for Linux" (WSL) in Windows Features
    • Option Two: Disable "Windows Subsystem for Linux" (WSL) in Windows Features
    • Option Three: Enable "Windows Subsystem for Linux" (WSL) in PowerShell
    • Option Four: Disable "Windows Subsystem for Linux" (WSL) in PowerShell






    OPTION ONE

    Enable "Windows Subsystem for Linux" (WSL) in Windows Features


    1 Open Windows Features, turn on (check) Windows Subsystem for Linux, and click/tap on OK. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-enable_windows_subsystem_for_linux.jpg

    2 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-restart.png

    3 You can now install and setup WSL distro apps from the Microsoft Store.






    OPTION TWO

    Disable "Windows Subsystem for Linux" (WSL) in Windows Features


    1 Open Windows Features, turn off (uncheck) Windows Subsystem for Linux, and click/tap on OK. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-disable_windows_subsystem_for_linux.jpg

    2 Click/tap on Restart Now when ready to restart the computer to apply. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-restart.png






    OPTION THREE

    Enable "Windows Subsystem for Linux" (WSL) in PowerShell


    1 Open an elevated PowerShell.

    2 Copy and paste the command below into the elevated PowerShell, and press Enter. (see screenshot below step 3)

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

    3 When prompted to restart the computer, type Y, and press Enter when ready to do so. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-enable_wsl_in_powershell.jpg

    4 You can now install and setup WSL distro apps from the Microsoft Store.






    OPTION FOUR

    Disable "Windows Subsystem for Linux" (WSL) in PowerShell


    1 Open an elevated PowerShell.

    2 Copy and paste the command below into the elevated PowerShell, and press Enter. (see screenshot below step 3)

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

    3 When prompted to restart the computer, type Y, and press Enter when ready to do so. (see screenshot below)

    Enable or Disable Windows Subsystem for Linux WSL in Windows 10-disable_wsl_in_powershell.jpg


    That's it,
    Shawn


    Related Tutorials




  1. Posts : 51
    Windows 10 Pro, 64 bit, 2004, build 19041.264
       #1

    Now that Windows 1607 has been released, I'm trying to get bash to work.
    I've followed option 1 to enable bash, but on entering 'bash' at the command prompt I get:
    Code:
    Unsupported console settings. In order to use this feature the legacy console must be disabled.
    Any one know how to get past this?

    Thanks,
    Dave.
      My Computer


  2. Posts : 51
    Windows 10 Pro, 64 bit, 2004, build 19041.264
       #2

    Ha, just worked it out.
    Right click on the console title bar, and deselect 'Use legacy console'.

    Thanks,
    Dave.
      My Computer

  3. Brink's Avatar
    Posts : 48,966
    64-bit Windows 10 Pro for Workstations build 19640
    Thread Starter
       #3

      My Computers


  4. Posts : 879
    win 10 pro x64
       #4

    is this still a test feature ??? or is it out of testing mode now since windows is now released ?
      My Computer

  5. Brink's Avatar
    Posts : 48,966
    64-bit Windows 10 Pro for Workstations build 19640
    Thread Starter
       #5

    Hello Tony, :)

    Bash on Ubuntu is still considered a beta feature in the Windows 10 Anniversary Update (version 1607 build 14393).

    Bash on Ubuntu on Windows 10 Anniversary Update Windows Subsystem for Linux
      My Computers


  6. Posts : 879
    win 10 pro x64
       #6

    oh ok i wait then i don't need any system lock ups and stuff thanks for the info.
      My Computer


  7. Brink's Avatar
    Posts : 48,966
    64-bit Windows 10 Pro for Workstations build 19640
    Thread Starter
       #7

    You're most welcome. :)
      My Computers


  8. Posts : 453
    Windows 10 Pro
       #8

    The Ubuntu Bash will definitely not lock up your system. As long as you don't trigger it it does nothing at all. The "Beta" label is more related to it's functionality, a lot of things don't work currently. For example networking. The web is full of posts where people ask how to get networking in the bash working (including myself ).
      My Computer


  9. Posts : 879
    win 10 pro x64
       #9

    yeah going to wait till its out of beta then i will activate it :)
      My Computer


 

Tutorial Categories

Enable or Disable Windows Subsystem for Linux WSL in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:11.
Find Us




Windows 10 Forums