The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
<iframe width="500" height="260" src="https://www.youtube.com/embed/MrZolfGm8Zk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
WSL 2 is a new version of the Windows Subsystem for Linux architecture that powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows. Its primary goals are to increase file system performance, as well as adding full system call compatibility.
You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.
- Runs Windows PowerShell as administrator
- Run the command below to start install WSL
wsl --install
- Check version of your WSL with this command
wsl -l -v
- To set the default version to WSL 1 or WSL 2 , Using the command below ( Replace with number of version you prefer Ex: 2 )
wsl --set-default-version <Version>
-
After you installed WSL2, You can choose a version of Ubuntu to install on Microsft Store. For me, I'm choosing Ubuntu 22.04 LTS
-
Once you done an installation, Run following commands to get the latest version of the software
$ sudo apt update
$ sudo apt upgrade