How can you run Windows commands from Linux?

Experience Level: Junior
Tags: WSL

Answer

Use WSL.

Execute wsl.exe from command-line.

You can run any Windows executable, you just need to provide its extension.

As an example, instead of xcopy, run xcopy.exe.

You can also execute explorer.exe, notepad.exe, calc.exe, cmd.exe and many other executables.


Comments

No Comments Yet.
Be the first to tell us what you think.
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL)

Are you learning WSL ? Try our test we designed to help you progress faster.

Test yourself