Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Bash in Windows 10 developer preview?

I am using windows 10 developer preview Build 14295. From the Build conference I understood that we can enable bash in windows 10. But its not clear how to enable bash in windows 10.

Please find below the blog post for running bash in windows 10. Link : http://www.hanselman.com/blog/DevelopersCanRunBashShellAndUsermodeUbuntuLinuxBinariesOnWindows10.aspx

After turning on Developer Mode in Windows Settings and adding the Feature, run you bash and are prompted to get Ubuntu on Windows from Canonical via the Windows Store

enter image description here

I enabled the developer mode. But I am not sure how to add a feature and run the bash. Kindly help.

like image 503
Nithin K Anil Avatar asked Apr 01 '16 09:04

Nithin K Anil


People also ask

How do I enable Bash in windows PowerShell?

What to Know. Developer Mode: Right-click Start menu > select Settings > Update & Security > For developers. Next: Select Developer mode > Yes > enable Windows Subsystem For Linux > restart. Use bash: Right-click Start menu > select Windows PowerShell (Admin) > type "bash" > press Enter.

Does Windows 10 support Bash?

Note that bash runs natively on Windows 10, which is different from using emulators like 'cygwin' for Windows which enabled GNU tools to run on unsupported Windows environment. Also, Linux subsystem for Windows 10 is only available on the 64-bit version of the OS.


2 Answers

To enable bash in Windows 10:

  1. Click the Start button , click Control Panel, click Programs, and then click Turn Windows features on or off.
  2. Enable Windows Subsystem for Linux
  3. To get Bash installed, open Command Prompt and type “bash”

Enable Windows Subsystem for Linux Installing Ubuntu on Windows using windows store Start Bash

For More Information visit :

  1. Announcing Windows 10 Insider Preview Build 14316
  2. Run Bash on Ubuntu on Windows

In some cases, attempting to turn on Developer Mode on may crash the Settings app. If this happens, the workaround is to use these steps here to enable Developer Mode

like image 51
Nithin K Anil Avatar answered Sep 18 '22 18:09

Nithin K Anil


The Bash feature isn't available on build 14295.

  • Scott answered a question that an update will be coming soon to insiders (Microsoft want to make sure everything is OK with this feature before pushing it to Insiders)
  • I've been chatting with a Microsoft Program Manager (Sarah Cooley) and she confirm that she have the Bash feature on Build 14311 (which isn't out for insiders yet)

You can see Scott's answer here: https://news.ycombinator.com/item?id=11394994.

like image 32
Mohamed Anas Ben Othman Avatar answered Sep 18 '22 18:09

Mohamed Anas Ben Othman