wsl/win

windows terminal: https://github.com/microsoft/terminal

整理常见问题

安装WSL

https://learn.microsoft.com/zh-cn/windows/wsl/install

如果电脑连不上Microsoft Store, 可以手工下载wsl发行版

https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#downloading-distributions

安装命令需要请求row.github, 需要用vpn了

警告

默认安装在C盘, 实践可以从C盘迁移到其它存储更大的盘符,下次记录下第一次直接安装在其它盘符的操作步骤, 貌似是指定参数 --root D:\WSL\Ubuntu

备注

建议养成用普通用户身份登录的习惯

使用 WSL 访问网络应用程序

https://learn.microsoft.com/zh-cn/windows/wsl/networking

自定义windows服务

https://github.com/winsw/winsw

使用WSL运行Linux GUI应用

https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/gui-apps

解决WSL2中Vmmem内存占用过大问题

https://blog.csdn.net/qq_22074337/article/details/126266675

使用ll命令

输入bash进入新的bash终端就可以使用ll命令了

去掉windows的环境变量

https://www.cnblogs.com/newber/p/14167430.html

从windows访问wsl目录

https://www.jianshu.com/p/109de14ad236

打开文件资源管理器,在窗口地址输入 \\wsl$