我使用 Windows 10 的 Linux 子系统(Windows 10 版本 1803)
我可以使用命令行:
user@laptop:~$ wslpath -w /c/
C:\
Run Code Online (Sandbox Code Playgroud)
但是当我尝试使用
user@laptop:~$ wslpath -w ~
wslpath: /home/user: Result not representable
Run Code Online (Sandbox Code Playgroud)
即使我使用:
user@laptop:~$ wslpath -w /home/user
wslpath: /home/user: Result not representable
Run Code Online (Sandbox Code Playgroud)
为什么?如何将 /home/user 转换为 windows 路径?
我在 Windows 中的主文件夹路径是 C:\Users\winuser\AppData\Local\lxss\home
我希望一些命令行可以让我返回那个字符串。