wsl 的安装指南

来源:互联网 发布:2016年海关进出口数据 编辑:程序博客网 时间:2024/04/28 02:27



down voteaccepted

In Ubuntu Userspace for Windows, the Ubuntu file system root directory is at

%localappdata%\Lxss\rootfs

or

C:\Users\Username\AppData\Local\Lxss\rootfs

Replace the Username with your Username on Windows.

enter image description here

Your Windows file system is located at /mnt/c in the Bash shell environment.

enter image description here

Source: dustinkirkland blog, howtogeek

Edit

It seems that there is some variation of Ubuntu file system location on windows due some update as told by NicholasJohn16. I found this article where some variation in Ubuntu file system paths are reported. I am quoting from it,

The Ubuntu system files are stored at:

C:\Users\USERNAME\AppData\Local\Lxss\rootfs
Your Ubuntu user account’s home folder is stored at:

C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME
The root account’s home folder is stored at:

C:\Users\USERNAME\AppData\Local\Lxss\root

enter image description here

https://askubuntu.com/questions/759880/where-is-the-ubuntu-file-system-root-directory-in-windows-nt-subsystem-and-vice

https://msdn.microsoft.com/en-us/commandline/wsl/about




原创粉丝点击