Summary
In this chapter, you have seen the ways in which WSL allows us to interop with Linux distros from Windows, starting with accessing the Linux file system via the \\wsl$\...
path. You also saw how to call Linux applications from Windows and that you can chain Windows and Linux commands together by piping output between them, just as you would normally in either system. Finally, you saw that WSL forwards localhost requests to web servers running inside WSL distros. This allows you to easily develop and run web applications in WSL and test them from the browser in Windows.
Being able to access the file systems for your WSL distros and execute commands in them from Windows really helps to bring the two systems together, and it helps you pick your preferred tools for the tasks you are working on, regardless of which operating system they are in. In the next chapter, we will explore the capabilities for interacting with Windows from inside a WSL distro.