We select and review products independently. When you purchase through our links we may earn a commission. Learn more.

Windows 10 Will Finally Offer Easy Access to Linux Files

Windows 10’s April 2019 Update brings a long-awaited feature: Support for easily accessing, viewing, and even modifying Windows Subsystem for Linux (WSL) files from File Explorer or via the command line.

Previously, it was possible to find your Linux files in your AppData folder, but Microsoft warns against that. Modifying files here would break things. Now, there’s an easier, official way to access these files with Windows tools—without the risk of breaking anything!

Advertisement

Microsoft’s Craig Loewen explains how it works: Rather than accessing these files directly, Windows runs a Plan 9 server as part of the WSL software in the background. Windows 10 has “a Windows service and driver that acts as the client and talks to the Plan9 server.” That server translates your file operations and handles Linux metadata such as file permissions, ensuring everything works properly even when you access a file with a Windows tool. But that’s just the complicated stuff that happens in the background, and you don’t have to think about it.

Advertisement

You can open a File Explorer window directly in the current directory from within a Linux shell environment. Just type the following command into the Bash shell:

Advertisement
explorer.exe .

You can work with files normally from here. Use drag and drop, copy and paste them, or even open them directly in Windows applications to modify them.

Advertisement
Microsoft

Microsoft may change how this works in the future. But, for now, you can also type following path into an Explorer window to access a Linux distribution’s files:

Advertisement
\\wsl$\<running_distro_name>\

In other words, if you’re running Ubuntu 18.04’s Bash shell, you’d type:

Advertisement
\\wsl$\Ubuntu-18.04\

This also works from the command line, of course. In PowerShell or the Command Prompt, the command cd \\wsl$\Debian\ changes to the root directory of your installed Debian system.

Advertisement
Microsoft

Windows Subsystem for Linux users have wanted this feature for a long time. Back in 2016, Microsoft’s Rich Turner wrote that he had to warn people not to access their Linux files in File Explorer at least two or three times per day. Now, there’s finally a way to work with these files without the risk of breaking something.

The Best Tech Newsletter Anywhere

Join 425,000 subscribers and get a daily digest of features, articles, news, and trivia.

We've got your info - thanks for signing up!
We were unable to subscribe you! Please check your e-mail address or contact us for assistance.
Signing you up...

By submitting your email, you agree to the Terms of Use and Privacy Policy.

Advertisement

RELATED: Everything New in Windows 10's May 2019 Update, Available Now

Chris Hoffman
Chris Hoffman is Editor-in-Chief of How-To Geek. He's written about technology for over a decade and was a PCWorld columnist for two years. Chris has written for The New York Times and Reader's Digest, been interviewed as a technology expert on TV stations like Miami's NBC 6, and had his work covered by news outlets like the BBC. Since 2011, Chris has written over 2,000 articles that have been read more than one billion times---and that's just here at How-To Geek. Read Full Bio »