How to access Windows user directory in WSL (Windows Subsystem for Linux)
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.sh
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.sh
ls /mnt/c/UsersNote 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
Check out similar posts by category:
Windows
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow