wsl open explorer code example

Example 1: open pwd ubuntu wsl in windows explorer

explorer.exe .

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: how to access the local machine using WSL

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.