Reputation: 753
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.
Upvotes: 6
Views: 10279
Reputation: 20383
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/
.
Upvotes: 3
Reputation: 753
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.
Upvotes: 3
Reputation: 563
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
Upvotes: 13