


(Optional) Type the following command to view all the available distros and press Enter: wsl -list -online (Optional) Type the following command to install Ubuntu if you already have WSL installed, and press Enter: wsl -install -d Ubuntu Type the following command to install the WSL and Ubuntu Linux on Windows 10 and press Enter: wsl -install Search for Command Prompt, right-click the top result, and select the Run as administrator option. To install Ubuntu on Windows 10, use these steps:

You can install the Ubuntu distribution alongside Windows 10 to run your favorite Linux tools without switching computers or creating a virtual machine. You don’t need to dual-boot or create a virtual machine when using WSL.You can also download and install the latest version of Ubuntu from the Microsoft Store.Or run the wsl -install -d UBUNTU-VERSION to install a specific version of Ubuntu.To install Ubuntu on Windows 10, open Command Prompt (admin) and run the wsl -install command to install the latest version.
