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

Was this article helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this article?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this article?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

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 ?

107 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

After all these steps receive the following:
How to start over again or reinstall?

145 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

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
twitter/adacosta
groovypost.com

8 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

I noticed you launched Command Prompt with Administrator privileges.

Press Windows key + R

Type: cmd

Hit Enter

Type: bash then hit Enter.

Best,
Andre
twitter/adacosta
groovypost.com

12 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

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!

31 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

Same result without admin privileges.

9 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

Same result without admin privileges.
Use Windows Powershell instead.
Best,
Andre
twitter/adacosta
groovypost.com

6 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

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!

It is optionalfeatures.exe not optionalextras.

Please note, if you are running the 32 bit version, this is not available in it.

Best,
Andre
twitter/adacosta
groovypost.com

6 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

I have done windows update and am on the fast track of insider track. My winver says Version 1511(OS Build 10586.164).

5 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

I had to use unconventional means to get it installed.
Best,
Andre
twitter/adacosta
groovypost.com

4 people found this comment helpful

·

Was this comment helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this comment?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this comment?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Forum Article Info


Last updated February 18, 2024 Views 446,981 Applies to: