0

Before Fall Creators Update I could run Ubuntu binaries in one-liner via such command:

%WinDir%\system32\bash.exe -c "echo 123"

But after the update, I can't find how to do the same thing with MarketPlace-installed distro. Is there a way to run such commands in cmd.exe?

Mansur
  • 1
  • 1
  • Possibly related https://stackoverflow.com/questions/45959560/is-it-possible-to-run-wsl-bash-in-non-interactive-mode – bahrep Oct 30 '17 at 15:36

1 Answers1

1

Why can't? Bash.exe and wsl.exe always run your default distro. Change default distro by wslconfig.exe

Or use ubuntu.exe to run Ubuntu, opensuse.exe to run OpenSUSE. Open

%USERPROFILE%\AppData\Local\Microsoft\WindowsApps

to see all your distro launcher.

reker
  • 2,063
  • 13
  • 12