windows

WSL

WSL https://0xffff.one/d/716-win10-xi-tong-xia-de-windows-termin

一些 WSL 问题

使用 Git 同步时出现 gnutls_handshake() failed: Error in the pull function

https://blog.csdn.net/forever_008/article/details/114919113

GnuTLS recv error (-110): The TLS connection was non-properly terminated.

apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000

https://segmentfault.com/a/1190000016677670

文件互操作

\\wsl$ https://blog.csdn.net/Caoyang_He/article/details/107898883 WSL 与 Windows 之间的互操作性 (Interoperability) 很牛逼。怎么个牛逼法呢?

Windows 下的所有盘符都挂载在 WSL 中的 /mnt 目录下,可以直接操作。WSL 中的所有数据则存放于 C:\Users\{你的用户名}\AppData\Local\Packages\{Linux发行版包名}\LocalState\rootfs 目录中(不要在 Windows 中修改这些文件,这会造成文件权限错误):

$ ls /mnt
c  d  e
$ mount -l
rootfs on / type lxfs (rw,noatime)
C: on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000)
D: on /mnt/d type drvfs (rw,noatime,uid=1000,gid=1000)
E: on /mnt/e type drvfs (rw,noatime,uid=1000,gid=1000)

Linux

https://zhuanlan.zhihu.com/p/472660528