参考:
[https://www.cnblogs.com/JettTang/p/8186315.html]
[https://blog.nickwhyy.top/wsl/]
[https://www.bilibili.com/read/cv1429071/]
1. 管理员权限,powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
2. 重启电脑
3. 打开应用商城搜索“WSL”,可根据自己需求选择安装一个或多个Linux系统
-------------------------------------------------------------------------------------------
迁移出C盘:
1. 下载解压LxRunOffline,https://github.com/DDoSolitary/LxRunOffline/releases,解压后可以添加到环境变量
2. 退出bash,执行LxRunOffline move -n {version} -d {dir},将Linux移动到指定的目录。其中,{version}是版本号,可以通过LxRunOffline list来查看,{dir}是目标目录。例如,笔者执行的是:LxRunOffline move -n Ubuntu -d ./