is there a way to access windows files from wsl besides /mnt/ everytime?

743 Views Asked by At

I need to call files from windows to use in wsl. how to do this from /home/user/?

Usually, I type /mnt/c/users/etc but this becomes time-consuming. Alternatively, I could just copy and paste a path but the dashes are always in the wrong direction. If there is a way to fix this it would be helpful.

1

There are 1 best solutions below

1
Damo On

You could create a symbolic link in the root dir

sudo ln -s /mnt/c/users/etc /e

Now all you need to do to switch to this directory is cd /e from anywhere in the file system, minimal typing required.