projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5b8af4
)
update docs and fix typo
author
AJ ONeal
<aj@therootcompany.com>
Mon, 14 Sep 2020 12:43:35 +0000
(12:43 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Mon, 14 Sep 2020 12:43:35 +0000
(12:43 +0000)
wsl2/README.md
patch
|
blob
|
history
diff --git
a/wsl2/README.md
b/wsl2/README.md
index ac29c54b5a2265e3f8f7439432b087168e0f90fb..41727a7d6786cb7030313a592c39a22aa51925f4 100644
(file)
--- a/
wsl2/README.md
+++ b/
wsl2/README.md
@@
-49,13
+49,27
@@
To Launch a specific Linux:
```pwsh
wsl.exe --list
```pwsh
wsl.exe --list
-wsl.exe
Ubuntu
+wsl.exe
-d Ubuntu-20.04
```
### How to Set or Reset Root Password
```pwsh
```
### 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
```
### How to Switch Between WSL 1 and WSL 2