I have several Unbuntu WSL 2 “installations” on my Windows 10 system and I’d like to be able to run tools like rsync and diff between them. Is it possible to mount/find where the files for these other copies exist and run Linux commands on them. I don’t want to copy into that area, just be able to “copy out”.
To make this more concrete I have:
X:WSLU18.04_1 and X:WSLU18.04_2
And, I can get into the 2nd one by saying:
wsl -d X:WSLU18.04_2 -u myname
That will bring up a bash shell in my home direction in the U18.04_2 image. Now, I would like to do effectively:
diff -rbitw /mnt/x/WSL/U18.04_1/home/myname /home/myname
But of course, that doesn’t work because /mnt/x/WSL/U18.04 is not actually a filesystem (as far as I can tell).