PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, May 14, 2022

[FIXED] How to launch a new WSL bash window from an existing WSL bash window

 May 14, 2022     bash, debian, ubuntu, windows, windows-subsystem-for-linux     No comments   

Issue

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.imgur.com/tIdRMvR.png

Running the bash.exe or wsl.exe commands just takes me to another bash shell from within that same bash shell.
https://i.imgur.com/OM1XTlG.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)



Answered By - DanR
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

1,206,303

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing