how to open ubuntu files in windows 10 code example

Example 1: windows how to access wsl from explorer

from explorer \\wsl$
from powershell: cd \\wsl$\<DistributionName> 

in my case DistributionName is Ubuntu20.04

Example 2: access wsl files from windows

C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\

Example 3: ubuntu path in windows 10

C:\Users\<username>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState