Symlink from WSL to Windows
- first open Powershell with Run as Administrator
- then run
New-Item -ItemType SymbolicLink -Path "windows-path\to\symlink" -Target "\\wsl$\Ubuntu\home\yourusername\path\to\target-thing"
substitute your distro name for Ubuntu
above if necessary, and yourusername
obviously too.
I used this to help manage my dot-files
. I keep all my configurations in a git-controlled repo in WSL, but sometimes I want to use those config files for a Windows app. So rather than cloning the repo twice, I can use a symlink.