I am a big fan of Windows Subsystem for Linux (WSL) and was totally psyched when they announced WSL2. However, the official Docs said that WSL2 isn't as performant as WSL1 when it comes to working with files in the Windows File system. This is kind of a bummer because most of my work is in the Windows File System itself and I would like to keep it that way.
But for the sake of checking it out, from PowerShell (could also be run from cmd.exe) I converted my main Distro to WSL2:
wsl.exe --set-version Ubuntu-18.04 2
The conversion was successful. Then – from WSL, logged in as root – when I ran
cd
explorer.exe .
it launched File Explorer in Network\wsl$\Ubuntu-18.04\home\user. I knew that this is a feature in WSL2; that we could access the Linux file system using the Windows Explorer.
However, I then decided to revert back to WSL1 (file system access). So I ran the command:
wsl.exe --set-version Ubuntu-18.04 1
And just to cross check, running
wsl.exe --list --verbose
lists my main distro as running version 1.
But now if I head over to WSL and run cd ~; explorer.exe ., it still opens up the directory in the File Explorer! As far as I know, this normally gives the error that windows can't access file paths with the Linux structure or something like that when run with WSL1.
So I was wondering if this is normal, or did it happen because of the reversion, or did I somehow break my installation?