Windows 10: Enable or Disable Bash on Ubuntu in Windows 10  

Page 1 of 3 123 LastLast
    Enable or Disable Bash on Ubuntu in Windows 10

    Enable or Disable Bash on Ubuntu in Windows 10

    How to Enable or Disable Bash on Ubuntu in Windows 10
    Published by Category: Apps & Features
    01 Apr 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 20,751

    Show Printable Version 


    How to Enable or Disable Bash on Ubuntu on Windows 10

    information   Information
    Microsoft first made investments that improve cmd, PowerShell, and many other command-line tools and developer scenarios. Second Microsoft decided to grow their command line family by adding real, native Bash and with it support for Linux command-line tools which run directly on Windows in an environment that behaves like Linux!

    Starting with Windows 10 Insider Preview Build 14316, you can natively run Bash in Windows. BASH is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distro’s, and in OSX. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.

    You can now run Bash scripts, Linux command-line tools like sed, awk, grep, and you can even try Linux-first tools like Ruby, Git, Python, etc. directly on Windows. You can also access your Windows filesystem from within Bash allowing you to work on the same set of files using your preferred Windows tools or Linux command-line tools.

    For more details about Bash, see:

    This tutorial will show you how to enable or disable the Bash on Ubuntu on Windows feature in Windows 10.

    warning   Warning
    While Microsoft is excited for you to try out this new technology, they want to be clear about a few things:

    First, this is the first time we’re releasing this technology – it’s marked as beta for a reason: We know that there are some rough edges and that some things will break! Do not expect every Bash script and tool that you run will work perfectly – there will be gaps. But by trying out this feature, you’ll help us figure out what we need to work on in order to greatly improve our reliability, coverage, and reach.

    Second, while you’ll be able to run native Bash and many Linux command-line tools on Windows, it’s important to note that this is a developer toolset to help you write and build all your code for all your scenarios and platforms. This is not a server platform upon which you will host websites, run server infrastructure, etc. For running production workloads on Ubuntu, we have some great solutions using Azure, Hyper-V, and Docker, and we have great tooling for developing containerized apps within Windows using Docker Tools for Visual Studio, Visual Studio Code and yo docker.

    Third, note that Bash and Linux tools cannot interact with Windows applications and tools, and vice-versa. So you won’t be able to run Notepad from Bash, or run Ruby in Bash from PowerShell.


    CONTENTS:
    • Option One: To Enable "Bash on Ubuntu on Windows" Feature in Windows 10
    • Option Two: To Disable "Bash on Ubuntu on Windows" Feature in Windows 10


    EXAMPLE: Bash on Ubuntu on Windows
    Name:  Bash_on_Ubuntu_on_Windows.png
Views: 4068
Size:  14.5 KB
    Click image for larger version. 

Name:	Bash_All_apps.jpg 
Views:	573 
Size:	111.0 KB 
ID:	73995





    Enable or Disable Bash on Ubuntu in Windows 10 OPTION ONE Enable or Disable Bash on Ubuntu in Windows 10
    To Enable "Bash on Ubuntu on Windows" Feature in Windows 10

    1. You will need to first turn on Developer mode. (see screenshots below)
    Note   Note
    You must be signed in as an administrator to be able to do this step.


    Click image for larger version. 

Name:	Developer_Mode-1.png 
Views:	150 
Size:	44.1 KB 
ID:	73996
    Name:  Developer_Mode-2.png
Views: 1274
Size:  10.8 KB

    2. Next, open Windows Features, turn on (check) Windows Subsystem for Linux (Beta), click/tap on OK, and click/tap on Restart now to restart the computer and apply. (see screenshots below)
    Note   Note
    You must be signed in as an administrator to be able to do this step.


    Name:  Bash_Windows_Features-1.png
Views: 1286
Size:  39.8 KB
    Name:  Bash_Windows_Features-2.png
Views: 1287
Size:  11.9 KB

    3. When the computer has finished restarting and you are signed in to Windows 10, open a command prompt.

    4. Type bash in the command prompt, press Enter, type Y when prompted, and press Enter. You can close the command prompt when it's finished. (see screenshot below)
    Note   Note
    This step can only be done if steps 1-3 above have been done first.

    This will install the Bash on Ubuntu on Windows app only for your account. Each user that wants the Bash app will need to do this step while signed in to their account.


    Click image for larger version. 

Name:	Bash_command.png 
Views:	139 
Size:	29.6 KB 
ID:	74004






    Enable or Disable Bash on Ubuntu in Windows 10 OPTION TWO Enable or Disable Bash on Ubuntu in Windows 10
    To Disable "Bash on Ubuntu on Windows" Feature in Windows 10

    1. Open Windows Features, turn off (uncheck) Windows Subsystem for Linux (Beta), click/tap on OK, and click/tap on Restart now to restart the computer and apply. (see screenshots below)

    Name:  Bash_Windows_Features-1.png
Views: 1286
Size:  39.8 KB
    Name:  Bash_Windows_Features-2.png
Views: 1287
Size:  11.9 KB



    That's it,
    Shawn



  1. Posts : 26
    Windows 10 Pro, 64 bit, 1703, build 15063.296.
       03 Aug 2016 #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 ComputerSystem Spec


  2. Posts : 26
    Windows 10 Pro, 64 bit, 1703, build 15063.296.
       03 Aug 2016 #2

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

    Thanks,
    Dave.
      My ComputerSystem Spec


  3. Posts : 20,751
    64-bit Windows 10 Pro build 16199
    Thread Starter
       03 Aug 2016 #3

      My ComputersSystem Spec

  4.    08 Aug 2016 #4

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


  5. Posts : 20,751
    64-bit Windows 10 Pro build 16199
    Thread Starter
       08 Aug 2016 #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 ComputersSystem Spec

  6.    08 Aug 2016 #6

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


  7. Posts : 20,751
    64-bit Windows 10 Pro build 16199
    Thread Starter
       08 Aug 2016 #7

    You're most welcome.
      My ComputersSystem Spec

  8.    08 Aug 2016 #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 ComputerSystem Spec

  9.    08 Aug 2016 #9

    yeah going to wait till its out of beta then i will activate it
      My ComputerSystem Spec


 
Page 1 of 3 123 LastLast

Related Threads
How to Enable or Disable App Suggestions on Start in Windows 10 In Windows 10, users will occasionally see app suggestions on Start such as Candy Age of Empires: Castle Siege, Asphalt 8: Airborne, Candy Crush Soda Saga, FarmVille2: Country...
Apps & Features Enable or Disable Cortana in Windows 10 in Tutorials
How to Enable or Disable Cortana in Windows 10 Cortana is your cloud-based personal assistant that works across your devices and other Microsoft services. Depending on the capabilities of your device and the version of Cortana you’re using,...
Apps & Features Enable or Disable OneDrive Integration in Tutorials
How to Enable or Disable OneDrive Integration in Windows 10 In Windows 10, you can easily save your files to OneDrive and get to them from any device, like your PC, tablet, or phone. OneDrive is free online storage at OneDrive.com that comes...
Performance & Maintenance Enable or Disable Hibernate in Windows 10 in Tutorials
How to Enable or Disable Hibernate in Windows 10 Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs (PCs with InstantGo don't have the hibernate option). While sleep puts your work and...
Is there a way to do this in windows 10? Indexer Backoff - Enable or Disable in Windows 7 - Windows 7 Help Forums
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 20:23.
Find Us