How to Access your Linux (WSL) Files in Windows 10

Configurare noua (How To)

Situatie

Solutie

  1. There are two ways to access your Linux files. First, the easy one. From within the Windows Subsystem for Linux environment, if you want to browse, run the following command:
    explorer.exe . 
  2. This will launch File Explorer showing the current Linux directory — you can browse the Linux environment’s file system from there.
  3. You can also access them directly at a \\wsl$ path. In File Explorer or any other Windows application that can browse files, navigate to the following path:
    \\wsl$
  4. You’ll see the folders for all your installed Linux distributions, which are exposed as if they were network shares. For example, Ubuntu 22.04 usually is available at \\wsl$\Ubuntu-22.04.Feel free to create a shortcut to this folder — for example, you could drag it to the Quick Access section in File Explorer’s sidebar.
  5. Again, you can modify these files normally as if they were any other type of file on your system. Modify files with Windows tools (Notepad even supports Unix line endings!), create new files in the Linux folders, delete files, or do anything else you like. Windows will ensure nothing goes wrong and the file’s permissions are updated properly.

Tip solutie

Permanent

Voteaza

(6 din 13 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?