Juan Luis Chulilla
Juan Luis Chulilla

Reputation: 368

wsl executes only bash commands and not windows options

When I try to execute cmd commands such as wsl -l, wsl returns this message:

/bin/bash: -c: option requires an argument

However, using wsl as a bash command launcher works.

What do I have to do in order to use wsl windows options such as wsl -l, wsl --install, etc.?

Thanks in advance!

Upvotes: 0

Views: 265

Answers (1)

Dubprocessor
Dubprocessor

Reputation: 204

I assume that you've entered wsl command in the Linux terminal and when you did this the first time bash answered you that the command was not found , so you installed 'wsl' package. This is a completely different package. If you want to invoke Windows binaries from bash you should use .exe file extension. Try wsl.exe -l

Upvotes: 1

Related Questions