Q:

access wsl files from windows

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

in my case DistributionName is Ubuntu20.04
0
C:\Users\%USERNAME%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\
0
You can access your local machine using Windows Linux subsystem by accessing mnt folder in the root directory of the bash.
Just type, cd / 
-- this will get you to the root folder.
Then type, cd mnt
-- this will get you inside the mnt directory
Then type, ls -ltr
-- this will list down the drives in your local computer. From here yo can access anything you want on your local computer.
0

New to Communities?

Join the community