So I'm currently in the process of configuring and setting up my WSL on my Windows 10 workstation so I can use some very useful command line tools on Windows. Now in both WSL and Git-Bash you have access to all drives and partitions and all the files on the PC (that your user has access to), but the paths are different. Let's say I have a temp
directory located at with a few files in it
tree C:\Temp
C:\TEMP
├───tempfile1.txt
├───tempfile2.txt
└───tempfile3.txt
Then when I open Git-Bash (using this SO Q&A) in the C:\Temp
directory run the pwd
command I see the path as
/c/Temp
but weirdly enough when I run an ls
command in /
in Git-Bash I don't see a c
directory and no mnt
directory either.
Now to WSL, when I do Open Linux Shell here
via the right-click context menu in the Windows Explorer and run pwd
it shows the path as being
/mnt/c/Temp
So my question is this: What and where is the '/' directory in Windows? And are these just 2 different ways of "mocking" the root directory?
Edit:
Windows version: Windows 10 Enterprise Edition Version 1903 (Build 18362.267)
WSL Version: 1809 (Build 17763) (Newest release as of time of writing)