Para o Ubuntu instalado a partir do repositório do Windows:
Each distribution you install through the store is installed to that application's appdata directory. For example:
C:\Users\<username>\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState
- benhillis
Em iterações anteriores do Windows Subsystem para Linux, o sistema de arquivos do Ubuntu estava em %localappdata%\Lxss
(por exemplo, C:\Users\Username\AppData\Local\Lxss
- substitua o Nome de usuário por seu nome de usuário no Windows). Consulte a postagem no blog da WSL sobre o suporte ao sistema de arquivos :
The primary file system used by WSL is VolFs. It is used to store the Linux system files, as well as the content of your Linux home directory. As such, VolFs supports most features the Linux VFS provides, including Linux permissions, symbolic links, FIFOs, sockets, and device files.
VolFs is used to mount the VFS root directory, using
%LocalAppData%\lxss\rootfs
as the backing storage. In addition, a few additional VolFs mount points exist, most notably/root
and/home
which are mounted using%LocalAppData%\lxss\root
and%LocalAppData%\lxss\home
respectively. The reason for these separate mounts is that when you uninstall WSL, the home directories are not removed by default, so any personal files stored there will be preserved.
CUIDADO
Criando / modificando quaisquer arquivos dentro do subsistema Linux usando o Windows apps & ferramentas podem causar corrupção de dados e perda de dados no subsistema Ubuntu! (Obrigado a Rich Turner por sugerir estas palavras de precaução!) Isto é absolutamente não suportado. Do mesmo post no blog:
Interoperability with Windows
While VolFs files are stored in regular files on Windows in the directories mentioned above, interoperability with Windows is not supported. If a new file is added to one of these directories from Windows, it lacks the EAs needed by VolFs, so VolFs doesn’t know what to do with the file and simply ignores it. Many editors will also strip the EAs when saving an existing file, again making the file unusable in WSL.
Seu sistema de arquivos do Windows está localizado em /mnt/c
no ambiente do shell Bash.
Fonte: