WSL修改默认存储路径
WSL
Issues found on WSL
项目地址:https://gitcode.com/gh_mirrors/ws/WSL

·
需求:wsl默认安装在C盘,我的C盘空间本来就所剩不多,所以移到其他盘去。
具体步骤:
// 查看wsl信息
wsl -l -v
// 导出Ubuntu
wsl --export Ubuntu(版本号) 导出路径\Ubuntu.tar
// 注销当前wsl
wsl --unregister Ubuntu
// 导入Ubuntu到指定目录
wsl --import 新存放路径 导出路径\Ubuntu.tar
最后,重启电脑就行啦。
参考:




Issues found on WSL
最近提交(Master分支:6 个月前 )
8c61f09e
* Add super user detection; a powershell approach is used
* use the 'id' command
* avoid stderr warning & wsl alias 1 个月前
ae780d11
1 个月前
更多推荐
所有评论(0)