WSL2设置默认启动用户(debian)

 以上图为例,打开Windows PowerShell,通过以下命令

查看子系统名 wsl -l

获取到子系统列表 其中  Debian(默认)标识Debian系统是当前默认系统

确认Debian要更改为默认启动的用户为 XXX(XXX为用户名)

执行下面命令,更改成功

Debian config --default-user XXX

猜你喜欢

转载自blog.csdn.net/love906897406/article/details/126070672