Introduction to WSL
WSL is stand for (Windows Subsystem for Linux) which was designed by Microsoft in partnership with Canonical, the creator of Ubuntu. what WSL is enables us is it allow us to run Linux programs natively on windows version of bash shell.
Why to use WSL
Lets install WSL v2
Requirements for running wsl v2 on windows
Before installing the wsl v2 we need to enable the Windows Subsystem for Linux and Virtual Machine Platform features of windows
Open your PowerShell as Administrator and run this
Then Restart your PC to complete the installation.
After you PC started Download and install the Kernel Package.
At last open Microsoft Store and in search bar type Ubuntu (like Ubuntu18.04, or 20.04 or 22.04) and click on install, after successful installation it will appear in your start menu click on it at first time it ask for user name and password (carefully type it) wallllaaaa your wsl v2 is now installed on your pc and you can run your favorite Linux command in windows