The Windows 1
Unlike previous methods, this is a safe way to work with Linux files! Windows does some magic in the background, which makes it possible to edit your Linux files out of Windows applications without causing file permissions problems. You should still not change the underlying files to their actual location on your system.
There are two ways to access your Linux files. First, the simple one. In the Windows Subsystem for Linux environment that you want to search, run the following command:
This starts the File Explorer, which displays the current Linux directory. From there you can browse the file system of the Linux environment.
You can also access them directly under the path
\ wsl $ . In File Explorer or any other Windows application that can search files, navigate to the following path:
\ wsl $
You can see the folders for all installed Linux distributions that are available on the network shares. For example, Ubuntu 18.04 is usually available at
\ wsl $ Ubuntu-18.04 .
You can also create a shortcut to this folder. For example, you can drag them into the Quick Access pane of File Explorer's sidebar.
You can change these files back to normal, as if it were a different file type on your system. Modify files using Windows tools (Notepad even supports Unix line endings!), Create new files in the Linux folders, delete files, or do anything else you want. Windows makes sure nothing goes wrong and the file permissions are properly updated.
RELATED: Everything new in Windows 10, May 2019 update, now available