How to access Linux files on Windows 10
Windows 10, April 2019 update brings a long-awaited feature: Support easy access, view and even modify Windows Subsystem for Linux (WSL) files from File Explorer or via stream command.
Previously, Linux files could be found in the AppData directory, but Microsoft warned against editing the files. Modifying the files here will break everything. Now, there is an official, easier way to access these files with Windows tools without risking any problems!
Craig Loewen from Microsoft explained how it works: Instead of directly accessing these files, Windows runs the Plan 9 server as part of the WSL software in the background. Windows 10 has a Windows service and the driver works as a client and communicates with the Plan9 server. The server translates user file operations and handles Linux metadata such as file access, ensuring everything works correctly even when users access the file using Windows tools. But those are just complicated things that happen in the background, and users don't need to care about it.
You can open the File Explorer window directly in the current directory from within the Linux shell environment. Just type the following command into the Bash shell:
explorer.exe .
You can work with normal files from here. Use drag and drop, copy and paste them, or even open them directly in Windows applications to modify.
Microsoft may change the way it works in the future. But, now, users can also enter the following path into the Explorer window to access the files of a Linux distribution:
wsl$
In other words, if you're running Ubuntu's Bash shell, enter:
wsl$Ubuntu
Of course, this also works from the command line. In PowerShell or Command Prompt, the wsl $ Debian cd command changes the root directory of the installed Debian system.
Windows Subsystem for Linux users have been expecting this feature for a long time. In 2016, Rich Turner from Microsoft wrote that he must warn people not to access their Linux files in File Explorer at least two or three times a day. Now finally there is a way to do this without causing any risk to the system.
You should read it
May be interested
- How to fix Quick Access Windows 11 error not showing recent filesquick access in windows 11 allows you to quickly see your most frequently used folders and recent files. unfortunately, for some users, quick access no longer shows recent files in file explorer.
- Access shared files on the network even when Offlinethe problem with storing all files on a networked server or computer is when you leave the network, how do you access those files? instead of using a vpn or dropbox, you can try the offline files feature built into windows.
- File Management in Unix / Linuxall data in unix is organized in files. all files are organized in folders. these directories are organized in a tree structure that is called the file system.
- Can Linux run Windows EXE files?you can run exe files and other windows programs on linux. luckily, it's not too complicated.
- How to limit access to su command in Linuxif you have added linux to your data center or are just using a single linux machine for your business, you need to make sure it is as secure as possible.
- Bring the best of Linux to Windows with CASHwindows command prompt is like an annoying mess, rather than an indispensable part of the operating system. in contrast, linux is designed to be very elegant, while helping users easily work efficiently.
- How to turn off Recent Files and Quick Access on Windows 10how to turn off recent files and quick access on windows 10. quick access as well as recent files is a feature designed by microsoft to help users quickly find the data they need, frequently or recently opened with just one open. windows explorer
- Instructions on how to share data between Windows and Linux via LANyou tried using a flash drive or sd card to transfer files from linux to a windows computer and found it annoying, especially when there are too many files to move and will take a long time to complete. .
- How to access SSH on Windows 7 using Cygwinif you are comfortable using linux / unix and want to access ssh on a windows 7 computer, you can use cygwin. this windows linux emulator provides this functionality and gives you a familiar work environment with just a few simple steps.
- How to use pandoc to convert files on Linuxyou can use pandoc on linux to convert over 40 different file formats. you can also use it to create a simple docs-as-code system by writing to markdown, saving with git and exporting it in any supported format.