note from windowsreport.com/linux-bash-…
prerequisites
If you can meet all these prerequisites, you can now freely install the Linux Bash on your Windows 10 computer.
- run at least Windows 10 version 1607
- Secondly, you need to run a x64 system
prepare
But before you actually install Bash on your computer, you need to prepare it. And here’s how to do that:
- Open the Windows 10 Settings app.
- Go to Update & security > For Developers.
- Under Use developer features, select the Developer mode option.
- restart your computer.
- open Control Panel.
- Click on Programs > Turn Windows features on or off.
- Check the Windows Subsystem for Linux (Beta) option, and click OK.
- restart it once again
setup
Once you’ve prepared your computer for the Linux Bash, you can finally enable this feature. Just follow these instructions:
-
Run cmd.exe
-
issue the command ,bash.exe
-
you will see console:
C:\Users\Administrator.DESKTOP-70OA76Q>bash 执行 Linux 程序的 Windows 子系统没有已安装的分发版。 可以通过访问 Microsoft Store 来安装分发版: aka.ms/wslstore
-
visit aka.ms/wslstore ,选择ubuntu,点击安装
-
Run bash.exe 设置新的用户名和密码,进入bash
job completed.