From d96687824ac2093c5c6d150b570c5e02ae184aad Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 14 Sep 2020 12:43:35 +0000 Subject: [PATCH] update docs and fix typo --- wsl2/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/wsl2/README.md b/wsl2/README.md index ac29c54..41727a7 100644 --- a/wsl2/README.md +++ b/wsl2/README.md @@ -49,13 +49,27 @@ To Launch a specific Linux: ```pwsh wsl.exe --list -wsl.exe Ubuntu +wsl.exe -d Ubuntu-20.04 ``` ### How to Set or Reset Root Password ```pwsh -wsl -d Ubuntu -u root +wsl -d Ubuntu-20.04 -u root passwd +``` + +### How to Run a Single Command + +Assuming you want to run `ls ~/` as the default user: + +```pwsh +wsl -- ls ~/ +``` + +Assuming your username is `app` and you wanted to run `ls`: + +```pwsh +wsl -d Ubuntu-20.04 -u app -- ls ~/ ``` ### How to Switch Between WSL 1 and WSL 2 -- 2.25.1