Learn how to use the Windows Subsystem for Linux (WSL) to make your coding environment more effective. WSL provides a new way to develop PHP applications on Windows while using native Linux binaries and tooling. This book gets you started installing Ubuntu as a WSL distribution with PHP, NGINX, and MySQL. You’ll also enhance your…
The Windows Subsystem for Linux can invoke native Windows binaries and be invoked from a Windows command line. This feature is available to Windows 10 users running Anniversary Update build 14951. This new interoperability functionality delivers a seamless experience between Windows and WSL. Technical details on how this interoperability works can be found on the WSL blog.
Source: Windows Interoperability | MSDN
This is pretty cool. From either command prompt (CMD) or PowerShell you can use the syntax bash -c “ls -la” to invoke basic Linux commands without launching the Ubuntu environment. More advanced tools like curl are also available.
The article indicates the reverse is also true but I wasn’t able to get Windows binaries running from the bash window. I don’t know if it’s a bug or something about my configuration.
Windows Subsystem for Linux Frequently Asked Questions | MSDN https://msdn.microsoft.com/en-us/commandline/wsl/faq