To install WSL on Windows 10, openCommand Prompt(orPowerShell) as admin and runwsl --installto install all the WSL2 components and the Ubuntu Linux distro. If you want to install a specific distro, run thewsl --install -d DISTRO-NAMEcommand, and to update the WSL kernel, run thewsl ...
To install WSL on Windows 11, openPowerShellorCommand Prompt (admin), run the “wsl –install”command, and restart the computer to set up the Windows Subsystem for Linux alongside the Ubuntu Linux distribution. To install WSL with a specific distro, run the“wsl –install -d DISTRO-NAME”...
Install using Command Prompt Step 1: StartCMDwith administrative privileges. Step 2:Execute\"wsl --install\"command. Step 3:Run\"wsl -l -o\"to list other Linux releases. Step 4:You can install your favorite Linux distribution, use\"wsl --install -d NameofLinuxDis...
Prerequisites: How to Install the WSL? WSL is the kernel layer on which Linux binaries are executed over the Windows operating system. To install the latest version of WSL, follow the below steps: Step 1: Open the Command Prompt In the Window operating system, open the command prompt through...
Open an administrative Terminal window and run this command to install Microsoft WSL. dism.exe/online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Next, we will enable the Virtual Machine platform feature. Again, if you happen to be running this in a VM, you ...
Install Windows Terminal: Although not strictly necessary, Windows Terminal is a powerful terminal emulator that can enhance the WSL/WSL2 experience. Installing it beforehand can help you get started with WSL/WSL2 faster. Choose a Linux distribution: WSL/WSL2 requires a Linux distribution to be ...
To install a distribution from the store, use the following command: wsl --install --distribution <Distro Name> Replace <Distro Name> with the name of the distribution as it's written in the prompt window Step 5:Restart Your Computer ...
Now wouldn't it be nice if Windows could do this? Well, thanks to WSL, it now can. From an elevated Windows command prompt (cmd.exe), run the following: wsl du -aSh 2>&1 | wsl sort -n -r | wsl head -n 5 This results in output similar to: ...
Install WSL2 on Windows 10 Step 1: Enable Windows Subsystem for Linux There are two ways to enable the Windows Subsystem for Linux feature on your system. One is a command-line method that requires you to execute commands on the Windows Powershell, while the other is graphical and doesn’...
Wsl --install -d Ubuntu In the above command, the Install parameter tells Windows that you want to install WSL. The -D switch (which must be entered as a lowercase letter) lets you specify the distribution that you want to install – in this case, Ubuntu. ...