Search code examples
windowsbashubuntudebianwindows-subsystem-for-linux

How to launch a new WSL bash window from an existing WSL bash window


I am struggling to figure out how to launch a new "command prompt" window via a bash command in WSL. The goal is to launch a second prompt preferably already in bash.

I have already tried running cmd.exe yet that just drops me to a standard windows command prompt cmd from with in the bash shell.
https://i.sstatic.net/f8leY.png

Running the bash.exe or wsl.exe commands just takes me to another bash shell from within that same bash shell.
https://i.sstatic.net/kA9Cw.png

I am using the Debian distribution for WSL though that should not matter.

I know you can make a new window from the standard command prompt by putting the start command before the program. Yet I can not find the *nix equivalent or how to call a bash command from within WSL that does the same thing.


Solution

  • This works from a bash prompt in WSL.

    cmd.exe /c start cmd.exe /c wsl.exe

    (Solution found here)