WSL2 set default startup user (debian)

 Take the above picture as an example, open Windows PowerShell, and use the following command

View the subsystem name wsl -l

Get the list of subsystems where Debian (default) identifies the Debian system as the current default system

Confirm that Debian will change to the default startup user as XXX (XXX is the user name)

Execute the following command, the change is successful

Debian config --default-user XXX

Guess you like

Origin blog.csdn.net/love906897406/article/details/126070672