Linux – Where is the C drive in the WSL?

bashcommand lineshellwindows-10-v1607windows-subsystem-for-linux

Whenever I try to login to bash using the Windows Subsystem for Linux, I try to cd into C:\Users\, but all I get is directory not found.

Where is the C drive for the Windows Linux subsystem? Is it isolated?

Best Answer

Taken from this website:

The WSL has access to your PC’s file system through /mnt/<drive letter>/ directories (or mount points). For example, your C:\ and D:\ root directories in Windows would be available through /mnt/c/ and /mnt/d/ respectively in the WSL

Just cd into the /mnt folder and you'll be fine