WSL is a Windows feature. On macOS and Linux your terminal already works the way WSL gives Windows.
WSL is a Windows feature. On macOS and Linux your terminal already works the way WSL gives Windows.
- Install WSL with UbuntuRun as administrator
wsl --installRestart your PC when it finishes.
- Open Ubuntu and finish setting it up
wslThe first time, pick a Linux username and password. They don't have to match Windows.
- Keep WSL up to date
wsl --update
Check it worked
- Check Ubuntu is installed and on WSL 2
wsl --list --verboseVERSION should say 2.
Undo it
- Remove Ubuntu and everything inside it
wsl --unregister UbuntuThis deletes all files inside Ubuntu for good.