Ubuntu子系统默认使用root登录

虚拟机经常卡着,简单使用还是使用Ubuntu子系统,不想每次都切换root用户,可以用下面方法实现。

1、进入cmd

cd %HOMEPATH%\AppData\Local\Microsoft\WindowsApps

2、cd CanonicalGroupLimited.UbuntuonWindows_xxxxxx

3、ubuntu.exe config --default-user root