How to access Windows folders from Bash on Ubuntu on Windows
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping
--
Chapters
00:00 How To Access Windows Folders From Bash On Ubuntu On Windows
00:18 Accepted Answer Score 327
00:39 Answer 2 Score 38
01:31 Thank you
--
Full question
https://superuser.com/questions/1066261/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows10 #bash #shell #windowssubsystemforlinux
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping
--
Chapters
00:00 How To Access Windows Folders From Bash On Ubuntu On Windows
00:18 Accepted Answer Score 327
00:39 Answer 2 Score 38
01:31 Thank you
--
Full question
https://superuser.com/questions/1066261/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#windows10 #bash #shell #windowssubsystemforlinux
#avk47
ACCEPTED ANSWER
Score 327
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/
.
ANSWER 2
Score 38
Alternatively,
- Hold down Shift while right-clicking in your desired Windows directory
- Select "Open PowerShell window here"
- Once you're in PowerShell, type
bash
You'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.
- Hold down Shift while right-clicking in your desired Windows directory
- Select "Open Linux shell here"