How to Setup WSL for Windows -
- Install the Linux distribution from the Microsoft Store. Click on Window icon > Microsoft Store > Search for Ubuntu
- You can now install everything you need to run Windows Subsystem for Linux (WSL) by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine.
wsl --install
NOTE: You need to run the PowerShell as Run as Administrator mode.
Click on Window button > Search for Window powershell > Right Click > Run as Administrator
After installing, You'll see a ubuntu icons in your windows. Please find the below screenshot for the references -