how to open wsl directory in explorer code example

Example 1: where is wsl folder in windows

%LOCALAPPDATA%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs

Example 2: windows how to access wsl from explorer

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

in my case DistributionName is Ubuntu20.04

Example 3: how to open explorer in wsl linux directory

#Type this:
from explorer \\wsl$
from shell: explorer.exe

Example 4: access wsl files from windows

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