On the Bash on Ubuntu on Windows app, I only have
root@localhost:~# ls -a
.bash_history .bashrc .profile
How do I access all of the Windows folders like Documents, Downloads, etc.?
On the Bash on Ubuntu on Windows app, I only have
root@localhost:~# ls -a
.bash_history .bashrc .profile
How do I access all of the Windows folders like Documents, Downloads, etc.?
You'll find the Windows C:\ structure at /mnt/c/ in the Bash environment.
Therefore, my Documents folder is at /mnt/c/Users/Ben/Documents/.
Alternatively,
bashYou'll be able to use any Bash commands directly to operate on the files and folders in that Windows directory. By using this method, you don't have to manually cd into your directories especially when you've a deep-rooted directory to access.
Update as of Windows 10 1809:
Above still works, but there's an easier method now.
~directory, your home in the Bash environment, which is not the root (/). If you had donecd /first, you would have seenmnt. – Ben N Apr 16 '16 at 18:01ln -s /mnt/c/ .– Yar Feb 23 '17 at 01:21No such file or directoryerror. – Iqbal Jul 12 '17 at 10:08cdinto the directories one at a time and tell me which is the problem? – Ben N Jul 12 '17 at 14:00