install ubuntu on windows 10 subsystem code example
Example 1: ubuntu subsystem windows 10 from cmd prompt
wsl --set-default-version 2
Example 2: how to run linux on windows10
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart