-
Book Overview & Buying
-
Table Of Contents
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques
By :
When you have WSL installed, you get a new \\wsl$ path that you can address in Windows Explorer and other programs. If you type \\wsl$ into the address bar in Windows Explorer, it will list any running Linux distributions (distros) as shown in the following screenshot:
Figure 4.1 – A screenshot showing \\wls$ in Windows Explorer
As you can see in the preceding screenshot, each running distro shows as a path under \\wsl$. Each \\wsl$\<distroname> is the path to the root of the file system for <distroname>. For example, \\wsl$\Ubuntu-20.04 is the Windows path for accessing the root of the file system for the Ubuntu-20.04 distro from Windows. This is a very flexible and powerful capability bringing full access to the file systems of your Linux distros to Windows.
The following screenshot shows the \\wsl$\Ubuntu-20.04\home\stuart\tmp path in Windows Explorer. This corresponds to the ~/tmp folder in the Ubuntu...