How to enable Bash in Windows 10 developer preview?

白昼怎懂夜的黑 提交于 2019-11-27 00:25:42

问题


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

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


回答1:


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”

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




回答2:


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.




回答3:


Today it is available at Build 14316! The announcement is at https://blogs.windows.com/windowsexperience/2016/04/06/announcing-windows-10-insider-preview-build-14316/




回答4:


Step1: Enable Developer Mode (Settings - Update & security > For developers)

Step2: Search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux (Beta).

Step3: To get Bash installed, open Command Prompt and type “bash”

Step4: Bash will install required packages on windows you can start with windows bash

Step5: Install any package through apt-get install package_name

Happy Bash programming on windows!




回答5:


Now, you don´t have to enable developer mode anymore, to run bash. Better security for you without having the dev. mode enabled.




回答6:


download git bash to run bash commands on your windows file system

git-bash website



来源:https://stackoverflow.com/questions/36352627/how-to-enable-bash-in-windows-10-developer-preview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!