Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

How to launch the WLS shell from a GitBash shell on Windows 10?

GitBash is one of the options one has to operate a Bash environment directly inside Windows. However, there now is the option to use the Windows Linux Subsystem (WLS), that can be launched from the classical terminal (cmd) by entering the command bash. However, despite both WLS and GitBash existing on the same Windows instance and environment, I don't yet see a direct way of launching the more powerful WLS environment from a GitBash shell.

Definitely, there would be the option of launching cmd inside GitBash, and then attempting to launch WLS by entering bash next, however, testing on Windows 10, I find that doing this has that bash command launch a new GitBash shell from the classical terminal shell instead. How to launch WLS instead?

NOTE: "Windows Linux Subsystem" == "Windows Subsystem for Linux" in this case. I just prefer to use the former.

Answer*

Cancel
3
  • Would you care to edit and expand upon your answer and format it correctly? Commented Jul 2, 2022 at 8:20
  • The question was how to start a wsl shell from a gitbash terminal as I understand it. Commented Jul 3, 2022 at 13:56
  • There is another way to do that: Newer versions of gitbash have now a way to add support for pseudoterminals. I had to uninstall my gitbash and reinstall it fresh. When looking at the options check the pseudoterminal on. Once done you can just type wsl in the terminal and it will show the wsl prompt from the os Commented Jul 3, 2022 at 13:58