How to install wsl windows subsystem for linux in windows using cmd

Run as Administrator

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

wsl --install

wsl.exe --install -d <Distribution Name>

                      Debian/ubuntu/kali linux/ cent os /fedora

To get a list of valid distributions, use 'wsl --list --online'.


    Comments