Activate Win10 built-in Linux (Ubuntu)
Microsoft has been natively supporting the Linux Bash command line since version 14316.
1. First go to System setup--Update and security--for developers--Select the developer model.
2. Control Panel → programs and features → enable or disable Windows features, check "Windows Subsystem for Linux (Beta)"
Reboot required after installation
3. Open a command prompt, enter the bash command directly in admin mode, prompting you to download from Windows Store and press Y to confirm.
Download the installation process requires users to create a UNIX account, so to set the account password, in the process of entering a password, password text is not visible, you need to enter two times.
Wait until the lengthy download process is complete and you are officially in bash, enter the lsb_release-a command to view the subsystem version.
4. The function command can be queried with bash--help, in the use of a prefix with "bash", for example: Bash--debug
5. If you want to run Linux commands, you can use the following format (note the spaces between C and front quotes): bash-c "Linux Commands"
For example: Bash-c "echo Hello from Ithome".
Original link: https://www.cnblogs.com/akii/p/5798099.html