Quantcast
Channel: Windows Archive - TechOverflow
Viewing all articles
Browse latest Browse all 17

How to access Windows user directory in WSL (Windows Subsystem for Linux)

$
0
0

WSL (Windows Subsystem for Linux) mounts C: as /mnt/c inside the WSL system.

Therefore, you can access your Windows user’s home directory using

cd /mnt/c/Users/<username>

In order to find out what the correct <username> is (it’s not always your normal username, especially if you logged in with your Microsoft account or changed your username), run

ls /mnt/c/Users

Note that you will get a permission denied error when trying to access /mnt/c/Users/Default User and /mnt/c/Users/All Users. This is totally normal and usually does not matter.

Original source: Windows blog article


Viewing all articles
Browse latest Browse all 17

Trending Articles