where are ubuntu files stored in windows 10 code example

Example 1: where are ubuntu files stored in windows 10

%userprofile%\AppData\Local\Packages

Example 2: where is wsl folder in windows

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

Example 3: windows how to access wsl from explorer

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

in my case DistributionName is Ubuntu20.04

Example 4: where is my ubuntu folder located

C:\Users\NAME\AppData\Local\Packages\DISTRO_FOLDER\LocalState\rootfs

Example 5: access wsl files from windows

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