4

I've Windows 2010 home ed installed and on top i have installed Ubuntu extension support by Windows.

I've started wrting my project there but not sure how to access directory in Ubuntu from my windows system (host)

any thoughts? Thanks in advance

I'd prefer to not use any external tool for it.

NotTheDr01ds
  • 15,620
  • 5
  • 44
  • 70
Amaresh Kumar
  • 586
  • 1
  • 8
  • 20
  • I guess you mean Windows 10. Ubuntu has access to your Windows directories, just open a shell and cd anywhere – Marged Sep 21 '19 at 09:56

3 Answers3

9

In Windows10 after the may 2019 update, the expected way to access WSL files from windows is via the mounted network drive.

You can access it at \\wsl$\<distro> via explorer, etc. You can even just launch explorer from wsl by running explorer.exe from your WSL shell.

See the dev blog post here for more info: https://devblogs.microsoft.com/commandline/whats-new-for-wsl-in-windows-10-version-1903/


To access the Windows10 filesystem you can just use the mounted filesystem at /mnt/<drive_letter> in WSL

imbuedHope
  • 508
  • 3
  • 14
1

figured out lately and as mentioned by @imbuedHope, from wsl command bash shell, you can open current directory by specifying . as follows:

explorer.exe .  //notice the dot

then u could navigate using windows explorer to wherever u want.

Amaresh Kumar
  • 586
  • 1
  • 8
  • 20
1

In Windows 11 Home, the Linux/Ubuntu folder automatically shows up in Windows Explorer.

In Linux/Ubuntu, the Windows filesystem shows up under /mnt/<mountname>/c. [The "mountname" was a choice provided during the WSL2 installation.] I can access Windows "My Documents" folder through the path: /mnt/arun/c/Users/arun/Documents/.

enter image description here

Arun
  • 19,750
  • 10
  • 51
  • 60