I'm using the Windows Subsystem for Linux WSL. I can start and exit the Ubuntu command-line with ubuntu
or exit
respectively, but I also want to run cmd
commands there.
How can I start cmd.exe
from within the WSL terminal?
I'm using the Windows Subsystem for Linux WSL. I can start and exit the Ubuntu command-line with ubuntu
or exit
respectively, but I also want to run cmd
commands there.
How can I start cmd.exe
from within the WSL terminal?
From within a Bash/WSL console you can invoke Windows executables by specifying the (correctly-cased) name of the executable, including its .exe extension (example: notepad.exe [filename]
). To start a new cmd shell and (optionally) run a command/executable program type:
cmd.exe
wsl
tag at Ask Ubuntu.
– karel
Dec 05 '17 at 11:15
wsl
tag at Ask Ubuntu. – karel Dec 05 '17 at 11:18wsl
tag. I hope this edit will be sufficient to scare off predatory downvoters and reviewers. – karel Dec 05 '17 at 11:21