Immediately terminates all running distributions and the WSL 2 lightweight utility virtual machine. See the Automount options in the Advanced Settings Configuration doc. You can instead change the default user for imported distributions using the /etc/wsl.conf file. ![]() This command will not work for imported distributions, because these distributions do not have an executable launcher. Ubuntu config -default-user johndoe would change the default user for the Ubuntu distribution to the "johndoe" user. The user has to already exist inside the distribution in order to become the default user. Change the default user for a distribution config -default-user Ĭhange the default user for your distribution log-in. To run WSL as a specified user, replace with the name of a user that exists in the WSL distribution. Run as a specific user wsl -u `, `wsl -user See a list of options and commands available with WSL. Check WSL version wsl -versionĬheck the version information about WSL and its components. See general information about your WSL configuration, such as default distribution type, default distribution, and kernel version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |