قالب وردپرس درنا توس
Home / Tips and Tricks / To access your Linux (WSL) files on Windows 10

To access your Linux (WSL) files on Windows 10



  Linux's Tux Penguin on the desktop background of Windows 10
Larry Ewing

The Windows 1

0 update from May 2019 finally offers a simple, secure and officially supported way to use File Explorer and other applications on your computer To access and work with Linux files. Follow these steps to access your Windows subsystem for Linux files.

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:

  explorer.exe. 

This starts the File Explorer, which displays the current Linux directory. From there you can browse the file system of the Linux environment.

 Viewing the Files of a Linux Environment in File Explorer

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.

 Windows 10 displays the \ wsl $ network location in File Explorer.

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




Source link