You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WSL/faq.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ You can also access your local machine’s filesystem from within the Linux Bash
30
30
31
31

32
32
33
-
### What is BASH?
34
-
[BASH](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in MacOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
33
+
### What is Bash?
34
+
[Bash](https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) is a popular text-based shell and command-language. It is the default shell included within Ubuntu and other Linux distros, and in MacOS. Users type commands into a shell to execute scripts and/or run commands and tools to accomplish many tasks.
35
35
36
36
### How does this work?
37
37
Check out our [blog](https://blogs.msdn.microsoft.com/wsl/) where we go into detail about the underlying technology.
@@ -47,7 +47,7 @@ Many languages like Ruby and node are often ported to, and run great, on Windows
47
47
These are just some of issues that caused many people to ask Microsoft to improve Windows’ command-line tools and what drove us to partner with Canonical to enable native Bash and Linux command-line tools to run on Windows.
48
48
49
49
### What does this mean for PowerShell?
50
-
While working with OSS projects, there are numerous scenarios where it’s immensely useful to drop into BASH from a PowerShell prompt. Bash support is complementary and strengthens the value of the command-line on Windows, allowing PowerShell and the PowerShell community to leverage other popular technologies.
50
+
While working with OSS projects, there are numerous scenarios where it’s immensely useful to drop into Bash from a PowerShell prompt. Bash support is complementary and strengthens the value of the command-line on Windows, allowing PowerShell and the PowerShell community to leverage other popular technologies.
51
51
52
52
Read more on the PowerShell team blog -- [Bash for Windows: Why it’s awesome and what it means for PowerShell](https://blogs.msdn.microsoft.com/powershell/2016/04/01/bash-for-windows-why-its-awesome-and-what-it-means-for-powershell/)
53
53
@@ -113,28 +113,28 @@ To fix issues related to `udev`, follow the following steps:
113
113
114
114
1. Write the following to `/usr/sbin/policy-rc.d` and save your changes.
115
115
116
-
```BASH
116
+
```bash
117
117
#!/bin/sh
118
118
exit 101
119
119
```
120
-
120
+
121
121
2. Add execute permissions to `/usr/sbin/policy-rc.d`
122
122
123
-
``` BASH
123
+
```bash
124
124
chmod +x /usr/sbin/policy-rc.d
125
125
```
126
126
127
127
2. Run the following commands
128
128
129
-
``` BASH
129
+
```bash
130
130
dpkg-divert --local --rename --add /sbin/initctl
131
131
ln -s /bin/true /sbin/initctl
132
132
```
133
133
134
134
### How do I uninstall WSL?
135
135
136
136
Open a command prompt and run:
137
-
``` CMD
137
+
```batchfile
138
138
lxrun /uninstall /full
139
139
```
140
140
@@ -159,7 +159,7 @@ The Windows Subsystem for Linux feature may be disabled during a Windows update.
159
159
WSL install will try to automatically change the Ubuntu locale to match the locale of your Windows install. If you do not want this behavior you can run this command to change the Ubuntu locale after install completes. You will have to relaunch bash.exe for this change to take effect.
Copy file name to clipboardExpand all lines: WSL/install-win10.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
23
23
24
24
2. Restart your computer when prompted.
25
25
26
-
## Fall Creators Update and later: Install from the Windows Store
26
+
## Install your Linux Distribution of Choice
27
+
### Fall Creators Update and later: Install from the Windows Store
27
28
28
29
> This section is for Windows Insiders (build 16215 or later). Follow these steps to [Check your build](troubleshooting.md#check-your-build-number). For earlier versions of Windows 10, follow [these instructions using lxrun](install-win10.md#for-anniversary-update-and-creators-update-install-using-lxrun).
29
30
@@ -57,7 +58,7 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
57
58
58
59
You're done! Now you can use your Linux environment.
59
60
60
-
## For Anniversary Update and Creators Update: Install using lxrun
61
+
### For Anniversary Update and Creators Update: Install using lxrun
61
62
lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for Linux.
62
63
63
64
> Since moving to the store, we have stopped keeping this user-mode image up to date. When you're done, run `apt-get update`.
@@ -85,4 +86,4 @@ lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for L
85
86
86
87
This UNIX username and password can be different from, and has no relationship to, your Windows username and password. [Learn more about your UNIX account.](user-support.md).
87
88
88
-
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.
89
+
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.
Copy file name to clipboardExpand all lines: WSL/wsl-config.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,10 @@ Lists all distributions, including ones that aren't currently usable. They may
46
46
There are three ways to launch and run WSL:
47
47
48
48
1.`wsl.exe` or `bash.exe`
49
-
1.`wsl -c [command]` or `bash -c [command]`
49
+
1.`wsl [command]` or `bash -c [command]`
50
50
1.`[distro]` ie `ubuntu` -- this is the same as launching the installed app from the Windows menu.
51
51
52
-
In the first two cases, WSL must pick a distribution to run - a default distribution. If you don't explicitly set a default, it will be the first one installed.
52
+
In the first two cases, WSL must pick a distribution to run - a default distribution. If you don't explicitly set a default, it will be the first one installed. Please note that when appending a command and invoking via 'wsl', you don't append a '-c' for the command.
53
53
54
54
`wslconfig /setdefault <DistributionName>`
55
55
Sets the default distribution to `<DistributionName>`.
0 commit comments