Linux – Where is the Windows bash directory in Windows

bashwindows 10windows-10-v1607windows-subsystem-for-linux

I've installed the Windows 10 Anniversary Update on my computer.

I would like to know where the /root directory in Bash prompt is within Windows?

I would like to be able to write files in Bash that are accessible from Windows too

i.e.-
If I do:

touch /root/foo

Where do I go to access foo in My PC

Best Answer

I believe this link will answer your question:

https://askubuntu.com/questions/759880/where-is-the-ubuntu-file-system-root-directory-in-windows-nt-subsystem-and-vice

In short:

%localappdata%\Lxss\rootfs

or

C:\Users\Username\AppData\Local\Lxss\rootfs

Related Question