wsl2 access windows files 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: access wsl files from windows
C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\