How to enable Bash in Windows 10?

3

4

Although it may seem to be duplicate to this question, the fact is, that Microsoft recently announced that bash will be running directly from windows

Obviously I am preferring that solution before installig cygwin.

The problem is, that blog post kinda states that it is already possible, yet I could not find a way to enable this in my windows installation.

What should I do in order to run bash directly as stated in linked microsoft blog post?

Pavel Janicek

Posted 2016-03-31T17:52:34.017

Reputation: 299

2There are 3rd party bashes available now that you can install. The Windows update that contains the sanctioned by Microsoft bash hasn't been released yet. – Tyson – 2016-03-31T17:58:29.270

@Tyson reading the blog post made me believe that it already is available, so I wated to try it before installing cygwin or going dualboot – Pavel Janicek – 2016-03-31T18:01:30.867

From you link... "....which will first become available in Windows 10 “Insiders” builds after the Build conference..." – Tyson – 2016-03-31T18:07:09.180

the blog seems to indicate on a supported version. just runnimg the command would autoinstall it. Give it a shot – Journeyman Geek – 2016-03-31T18:51:34.403

That's not really running "directly from windows," the article title is even "*Run Bash on Ubuntu on Windows*". It sounds a lot like it could be a command line only VM. Anyone know for sure? For now, to run it "directly" you could just run full Ubuntu in a full VM – Xen2050 – 2016-04-01T11:08:53.347

Answers

4

After installing the Windows Anniversary Update, search for "Developer Mode":

enter image description here

Select "Developer Mode":

enter image description here

Accept the dialog:

enter image description here

Then search for "Windows Features":

enter image description here

Select "Windows Subsystem for Linux (Beta)":

enter image description here

It will then ask you to reboot:

enter image description here

Reboot, then run cmd.exe, then type bash. Accept the license. It will download and install:

enter image description here

This took about 5 minutes to complete on my machine. You'll have to select a username and password too.

Drew Noakes

Posted 2016-03-31T17:52:34.017

Reputation: 1 907

5

As the blog says: "will first become available in Windows 10 “Insiders” builds after the Build conference".

The Build conference doesn't end until tomorrow (Apr. 1, 2016), so it's not out yet.

Once it's out: "Developers will be able to download the Bash shell from the Windows Store."

Source

Ƭᴇcʜιᴇ007

Posted 2016-03-31T17:52:34.017

Reputation: 103 763

2Too impatient :) – Pavel Janicek – 2016-03-31T18:18:13.447

It's a great move for Microsoft – Stuart – 2016-03-31T19:45:50.020

2

The Bash is available since Build 14316

enter image description here

Run native Bash on Ubuntu on Windows: In this build, you can natively run Bash in Windows as announced last week at Build 2016. To do this, you first need to turn on Developer Mode via Settings > Update & security > For developers.

enter image description here

Then search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux (Beta). enter image description here To get Bash installed, open Command Prompt and type “bash”.

Microsoft explained all steps in detail in this blog post.

magicandre1981

Posted 2016-03-31T17:52:34.017

Reputation: 86 560

I do not have the subsystem option. build 14316 and dev mode on. strange... – JP Hellemons – 2016-04-12T11:48:34.977

1@JPHellemons maybe you use the 32Bit Windows 10 Preview. The Linux System seams to only part of the 64Bit Windows. – magicandre1981 – 2016-04-12T15:42:27.700

Running on Lenovo Miix 2 8inch. it is a 32bit version of win10 indeed, has x64 cpu it seems. Do you know if it will be available for 32bit too? – JP Hellemons – 2016-04-13T09:44:02.757

@JPHellemons I have no idea. Ask this Microsoft in their forums and send Feedback via the Feedback app – magicandre1981 – 2016-04-13T15:31:56.210