So, I totally begineer at WSL and I have installed and running WSL. And, I found that I can enter the default distro by just typing wsl
and pressing.
But, how to exit from the same terminal, without going into powershell window and then typing wsl --shutdown
Want to Shutdown WSL distro from within the same terminal and flexiblity to shift from Wsl to powershell mode within the same terminal on desire. In simple terms to exit the linux distro and get back to powershell mode just like I can get into distro mode by using wsl command.
To shutdown WSL from inside a Linux distro :
wsl.exe -t $WSL_DISTRO_NAME