Windows Subsystem for Linux update will allow you to access Linux files from Windows 10
Microsoft yesterday announced in a blog post that Windows 10โs April 2019 Update will bring in some new features to the Windows Subsystem for Linux (WSL) in version 1903. Theย changelogย for build 18836 has also been updated to reflect the changes.
In the past, one couldnโt launch Windows applications from a Linux terminal. But now you can easily access all the files in your Linux distros from Windows. All you need to do is open your favorite distro, and type inย explorer.exe. This will open a File Explorer window, located inside of your Linux distro.
โFrom here you can access whatever Linux files you would like, just like you would any other file through File Explorer. This includes operations such as: dragging files back and forth to other locations, copy and paste, and even interesting scenarios like using the context menu to open VSCode in a WSL directory!โ reads the blogpost.
Currently, the path will look something like \\wsl$\<running_distro_name>\. Microsoftโs Craig Loewen says developers are โactively investigating ways to improve the discoverability of your Linux files inside of File Explorerโ in the future.
Since this is a new feature, there are some known issuesย such as your Linux distro needs to be running for you to access the files. However, that may change in a future update. Further, Linux files is treated the same as accessing a network resource, which means any rules forย accessing network resources will still apply. Lastly, Microsoft warns that you should not access your Linux files inside of the AppData folder.
Microsoft has also made some improvements to the command line by consolidating their commands to wsl.exe and adding more command line functionality. The tech giant has also added some new commands that will give you more functionality when using wsl.exe. You can now run commands as different users, terminate running distributions, and even export and import different distros!
You can read more about the latest changes to the WSL here.
Ha ha – all your Linux files have now been crypto locked. Thanks MS, I need an insecure system to access my important stuff. Just like how I love the FLU virus