How to: Enable the Windows Subsystem for Linux

Technical Level : Expert

Summary
What is old is new again. As far back as Windows 7, Microsoft included a UNIX subsystem, which provided POSIX compliance with the UNIX operating system. POSIX which stands for Portable Operating System Interface, made the dominant unices of the 80's and 90's adhere to industry standards in regards to command line tools and interface standards. This made it easier for you to learn one UNIX and use another. Although this article does not focus on UNIX, it discusses a close cousin to the UNIX operating system, Linux. At the 2016 Build Developer Conference. Microsoft announced support for Ubuntu on Windows 10. This means, developers and administrators will be able to access the powerful command line tools and applications from within Windows. In the past, the only way to do this was by setting up a Virtual Machine with Linux. Not anymore, now you can run a core component of Linux, right on top of Windows.
Details

Please note, there are no penalties in regards to performance and functionality. Setting up and configuring the Windows Subsystem for Linux on Windows will require some command line experience, but you will likely know what you are doing, if you want it. Lets take a look at how to do it. Please note, this functionality is still being refined. The final release of Windows 10 which will include the Linux Subsystem will be released this summer.

  • Please note, in order to install Ubuntu for Windows 10, you will need access to the Internet, since the installation is done from the Windows Store.
  • The size of the download is about 200 MBs.
  • Bash on Ubuntu on Windows 10 does not work on the 32 bit version of Windows 10, because it requires Hyper-V

To learn more about Bash and the Windows 10 Anniversary Update, check out the following articles:

Enable Developer Mode in Windows 10

Click Start > Settings > Update & security > For developers

Select the Developer mode radio box then click Yes

Press Windows key + R then type: optionalfeatures.exe then hit Enter

Scroll down then check off Windows Subsystem for Linux then click OK

Restart when the installation is complete.

Press Windows key + X

Click Command Prompt

At the command prompt, type: bash then hit Enter

Type the letter Y then hit Enter

Wait while Ubuntu on Windows is installed, this can take a while depending on the speed of your Internet.

When complete, wait while Ubuntu on Windows is configured.

That's it, you now have full access to Linux Command Line Tools on Windows 10.

Resources:

https://blogs.windows.com/windowsexperience/2016/04/06/announcing-windows-10-insider-preview-build-14316/

How to: Upgrade a dual boot installation of Windows and Linux to Windows 10 - Part 1

 

Forum Article Info


Last updated October 22, 2018 Views 22,485 Applies to:

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

After all these steps receive the following:
How to start over again or reinstall?
I have done windows update and am on the fast track of insider track. My winver says Version 1511(OS Build 10586.164).

When I get to the 'optionextras.exe' step, I don't see Windows System for Linux listed. The list skips from 'Windows Process Activation Service' to 'Windows TIFF IFilter'.

My desktop shows "Evaluation copy. Build 14136.rs1_release160402-2217.

Any clues? Thanks!

I find it unbelievable people can't tell the difference between two numbers:

10586.xxx

14316

10586 does not have the Windows Linux Subsystem. I have been saying this all along.

You need to have 14316, 14328 or 14322 installed.

Also, you need to have the 64 bit version installed.

How to install the latest Windows 10 build

Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com

Same result without admin privileges.
Use Windows Powershell instead.
Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com

I noticed you launched Command Prompt with Administrator privileges.

Press Windows key + R

Type: cmd

Hit Enter

Type: bash then hit Enter.

Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com

Please explain to me how 10586.240 greater than 14316?

The 240 is point revision of build 10586.

Windows 10 build 14316 full build number is higher.

Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com
This document was very help to my need and it is very good to the point. Thank you

Even when I chose the developer mode and checked for updates, I cannot find the optional feature. Pls help. I think I didn't get the build 14316 update yet. What should I do ?

Press Windows key + R

Type: winver

Hit Enter on your keyboard

Does it say 14316 on the About dialog?

Best,
Andre
Windows Insider MVP
MVP-Windows and Devices for IT
twitter/adacosta
groovypost.com
--philippeko

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.