Horje
EDIT WSL2 terminal user% Code Example
change wsl to version 1
wsl --set-version Ubuntu-18.04 1

// Run the above command from windows powershell 
// This assumes you are running Ubuntu 18.04
How to change default user in WSL Ubuntu bash on Windows 10

ubuntu2 config --default-user root

#ubuntu 20.04
ubuntu2004 config --default-user root

#ubuntu 18.04
ubuntu1804 config --default-user root

EDIT WSL2 terminal user%
ubuntu2004 config --default-user root




Shell

Related
Why github ask me username/password instead of SSH authentication? Code Example Why github ask me username/password instead of SSH authentication? Code Example
cat first line Code Example cat first line Code Example
wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error+dd image Code Example wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error+dd image Code Example
how to ignore modified file in git Code Example how to ignore modified file in git Code Example
regex last match Code Example regex last match Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9