Page 1 of 4 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
    14 Jul 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 25,778

    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: 5904
Size:  14.5 KB
    Click image for larger version. 

Name:	Bash_All_apps.jpg 
Views:	1348 
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.

    Starting with Windows 10 build 16215, you are no longer required to enable Developer Mode in order to use Bash & Linux tools on Windows 10. You can now run Bash on Windows without developer mode being enabled.


    Click image for larger version. 

Name:	Developer_Mode-1.png 
Views:	200 
Size:	44.1 KB 
ID:	73996
    Name:  Developer_Mode-2.png
Views: 3082
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.

    Instead of doing this step using Windows Features, you could also open an elevated PowerShell, type the command below into PowerShell, press Enter, and type Y when prompted in PowerShell to restart the computer to apply.

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


    Name:  Bash_Windows_Features-1.png
Views: 3085
Size:  39.8 KB
    Name:  Bash_Windows_Features-2.png
Views: 3115
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 screenshots 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.

    Update: Starting with Windows 10 build 16215, you will need to type lxrun /install in the command prompt instead of bash.


    Click image for larger version. 

Name:	Bash_command.png 
Views:	209 
Size:	29.6 KB 
ID:	74004
    Name:  lxrun.jpg
Views: 1548
Size:  61.4 KB






    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)
    Note   Note
    Instead of doing this step using Windows Features, you could also open an elevated PowerShell, type the command below into PowerShell, press Enter, and type Y when prompted in PowerShell to restart the computer to apply.

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



    Name:  Bash_Windows_Features-1.png
Views: 3085
Size:  39.8 KB
    Name:  Bash_Windows_Features-2.png
Views: 3115
Size:  11.9 KB



    That's it,
    Shawn


  1.    03 Aug 2016 #1
    Join Date : Oct 2014
    Posts : 26
    Windows 10 Pro, 64 bit, 1709, build 16299.125.

    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.    03 Aug 2016 #2
    Join Date : Oct 2014
    Posts : 26
    Windows 10 Pro, 64 bit, 1709, build 16299.125.

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

    Thanks,
    Dave.
      My ComputerSystem Spec
  3.    03 Aug 2016 #3
    Join Date : Oct 2013
    Posts : 25,778
    64-bit Windows 10 Pro build 17046
    Thread Starter

      My ComputersSystem Spec
  4.    08 Aug 2016 #4
    Join Date : Jul 2015
    Nine Mile Falls WA
    Posts : 516
    win 10 pro x64

    is this still a test feature ??? or is it out of testing mode now since windows is now released ?
      My ComputerSystem Spec
  5.    08 Aug 2016 #5
    Join Date : Oct 2013
    Posts : 25,778
    64-bit Windows 10 Pro build 17046
    Thread Starter

    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
    Join Date : Jul 2015
    Nine Mile Falls WA
    Posts : 516
    win 10 pro x64

    oh ok i wait then i don't need any system lock ups and stuff thanks for the info.
      My ComputerSystem Spec
  7.    08 Aug 2016 #7
    Join Date : Oct 2013
    Posts : 25,778
    64-bit Windows 10 Pro build 17046
    Thread Starter

    You're most welcome.
      My ComputersSystem Spec
  8.    08 Aug 2016 #8
    Join Date : Oct 2014
    Posts : 401
    Windows 10 Pro

    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
    Join Date : Jul 2015
    Nine Mile Falls WA
    Posts : 516
    win 10 pro x64

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

 
Page 1 of 4 123 ... LastLast


Similar Threads
Tutorial Category
Apps & Features 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, Cortana can provide a range of features, some of which...
Tutorials
Customization Enable or Disable App Suggestions on Start in Windows 10
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...
Tutorials
Apps & Features Enable or Disable OneDrive Integration
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...
Tutorials
Performance & Maintenance Enable or Disable Hibernate in Windows 10
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...
Tutorials
Solved Indexer Backoff - Enable or Disable in Windows 10?
Is there a way to do this in windows 10? Indexer Backoff - Enable or Disable in Windows 7 - Windows 7 Help Forums
Performance & Maintenance
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 12:03.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums