wsl access windows folder code example
Example 1: wsl2 access folder from windows
Open File Explorer.
Type \\wsl$ in the address bar.
My distro shows up and click on it and you can see the file system
Example 2: windows how to access wsl from explorer
from explorer \\wsl$
from powershell: cd \\wsl$\<DistributionName>
in my case DistributionName is Ubuntu20.04