This article was last updated on <span id="expire-date"></span> days ago, the information described in the article may be outdated.
Windows系统的Linux子系统WSL(Windows Subsystem for Linux)修改默认安装目录到其他盘
修改Ubuntu安装位置
查看当前Ubuntu版本信息
1 | wsl -l -v |
打包子系统到d盘命名为xxx.tar,如:Ubuntu-20.04.tar
1 | wsl --export Ubuntu-20.04 d:\Ubuntu-20.04.tar |
卸载当前Ubuntu版本
1 | wsl --unregister Ubuntu-20.0.4 |
将d盘下的Ubuntu-20.04.tar加载到f盘下的Ubuntu-20.04文件夹下
1 | wsl --import Ubuntu-20.04 f:\Ubuntu-20.04 f:\Ubuntu.tar |
Author: oGnok
Permalink: http://lovelypanda.top/2023/09/24/ubuntuwsl/