【无标题】

将安装的WSL迁移到D盘

PS C:\windows\system32> wsl -l --all -v
  NAME            STATE           VERSION
* Ubuntu-20.04    Stopped         2
PS C:\windows\system32> wsl --export Ubuntu-20.04 D:\WSL\Ubuntu\Ubuntu-20.04.tar
PS C:\windows\system32> wsl --unregister Ubuntu-20.04
正在注销...
PS C:\windows\system32> wsl --import Ubuntu-20.04 D:\WSL\Ubuntu D:\WSL\UbuntuUbuntu-20.04.tar --version 2
系统找不到指定的文件。
PS C:\windows\system32> wsl --import Ubuntu-20.04 D:\WSL\Ubuntu D:\WSL\Ubuntu\Ubuntu-20.04.tar --version 2
PS C:\windows\system32> ubuntu2004
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Fri Jun 16 19:03:39 CST 2023

  System load:  0.06               Processes:             8
  Usage of /:   0.6% of 250.98GB   Users logged in:       0
  Memory usage: 0%                 IPv4 address for eth0: 172.17.224.55
  Swap usage:   0%

Expanded Security Maintenance for Applications is not enabled.

0 updates can be applied immediately.

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status



This message is shown once a day. To disable it please create the
/root/.hushlogin file.
root@DESKTOP-U5ON84P:~# 

修改默认用户

PS C:\Users\17593> ubuntu2004 config --default-user zch
PS C:\Users\17593> ubuntu2004
zch@DESKTOP-U5ON84P:~$
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值