In a Windows Subsystem for Linux (WSL) setup, WSL itself is installed within the Windows operating system, typically in the following location:
C:\Windows\System32\wsl.exe
However, the filesystems of Windows and the Linux distribution installed via WSL are kept separate by default. There isn't a direct "connecting folder" between the two filesystems. Instead, WSL provides access to the Windows filesystem from within the Linux environment using a special mount point.
By default, your Windows drives (such as C:, D:, etc.) are mounted under the /mnt
directory in the Linux environment. For example:
C:\
is accessible as/mnt/c/
in WSL.D:\
would be accessible as/mnt/d/
, and so on.
Conversely, your Linux filesystem is accessible from within Windows via a special network share. The exact location of this network share can vary, but you can typically access it from File Explorer using a path like:#
\\wsl$
This allows you to access and manipulate files in your Linux distribution's filesystem from within Windows, and vice versa.
Keep in mind that while you have this level of access, there are some limitations and considerations to be aware of, especially related to file permissions and compatibility between Windows and Linux filesystems.