windows-wsl
Windows WSL (Windows Subsystem for Linux)
install
wsl --install
- 在 Windows 10 上安裝 WSL | Microsoft Docs
root path
- In the latest versions [2020], the file system is accessed from:
1
2
3# \\wsl$\<Distribution>:
\\wsl$\Ubuntu - For Ubuntu installed from the Windows store:
- 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
- In earlier iterations of Windows Subsystem for Linux, the Ubuntu file system
%localappdata%\Lxss
(e.g.,C:\Users\Username\AppData\Local\Lxss
- replace the Username with your Username on Windows). See the WSL blog post on File System Support:
:::danger
- Creating/modifying any files within the Linux subsystem using Windows apps & tools can cause Data corruption and data loss in Ubuntu subsystem!
:::