Mansur
Mansur

Reputation: 1

Run WSL command in non-interactive mode (Fall Creators Update)

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?

Upvotes: 0

Views: 421

Answers (1)

reker
reker

Reputation: 2193

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.

Upvotes: 1

Related Questions