How do I install Bash on Ubuntu on Windows 10?

5

1

I'd like to install the Ubuntu Bash on my Windows 10 machine. How do I do that?

user578668

Posted 2016-04-04T04:24:45.687

Reputation: 59

4Are you on the Developers Preview build 14311 or newer of Windows 10? (not available to general public, yet)? Or have you installed Ubuntu for Windows 10 from the Windows store (again, not yet available)? No to both, then you can't use bash yet. – acejavelin – 2016-04-04T04:46:46.620

Install cygwin or win-bash

– DavidPostill – 2016-04-04T08:15:39.893

Duplicate of http://superuser.com/questions/1059767/how-to-enable-bash-in-windows-10?

– Drew Noakes – 2016-08-11T08:39:52.950

Answers

6

First off you have to make sure that you're on Build 14311 or higher of the developer preview, which is available to the general public. From there, follow these steps:

  1. In Settings --> Update & Security --> For Developers, enable Developer Mode

    Developer Mode Enable

    You'll get a warning about developer mode, select Yes

    Developer Mode Warning

  2. Search for "Windows Features" in the Settings Search (Top Right Corner) and select Turn Windows features on or off

  3. Navigate to and then enable (check mark) the `Windows Subsystem for Linux (Beta)

    Windows Features

  4. After installation, you'll be required to restart the computer. This is a pretty large install and may take some time.

  5. Finally, open a cmd window and execute the command bash. You'll be required to accept the terms and service. Ubuntu will then be download (~1 Gb in size) and then install.

  6. Enjoy!

James Mertz

Posted 2016-04-04T04:24:45.687

Reputation: 24 787

Great answer, just a question on Step 5 I get this error message Downloading form the Windows Store... 0%Error: 0x800c0008. It happens almost instantly. Any suggestions? – tyelford – 2016-04-10T23:58:52.453

@tyelford looks like an account issue and not an installation issue.

– James Mertz – 2016-04-11T16:11:15.917

0

  1. Opens a cmd.exe console

Means you need to go to Start -> Run... and type cmd, or by pressing Windows+R.

The cmd.exe/cmd stands for Command Prompt and it's the command-line interpreter on Windows (similar to Bash).

It's better if you install Git for Windows which will provide Bash shell out-of-box. After installation you'll have shortcut created on your Desktop, so you won't have to run cmd anymore in order to run Bash shell.

kenorb

Posted 2016-04-04T04:24:45.687

Reputation: 16 795

0

Assuming you are referring to the newly announced bash that will be available embedded/integrated in Windows 10, then...

Are you on the Developers Preview build 14311 or newer of Windows 10? (not available to general public, yet)? Or have you installed Ubuntu for Windows 10 from the Windows store (again, not yet available)? No to both, then you can't use bash yet.

acejavelin

Posted 2016-04-04T04:24:45.687

Reputation: 5 341