Skip to content

Commit 626cd29

Browse files
committed
fixed merge conflicts
2 parents f110b7d + d4e69b5 commit 626cd29

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

WSL/faq.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ You can also access your local machine’s filesystem from within the Linux Bash
3030

3131
![](media/ls.png)
3232

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.
3535

3636
### How does this work?
3737
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
4747
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.
4848

4949
### 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.
5151

5252
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/)
5353

@@ -113,28 +113,28 @@ To fix issues related to `udev`, follow the following steps:
113113

114114
1. Write the following to `/usr/sbin/policy-rc.d` and save your changes.
115115

116-
``` BASH
116+
```bash
117117
#!/bin/sh
118118
exit 101
119119
```
120-
120+
121121
2. Add execute permissions to `/usr/sbin/policy-rc.d`
122122

123-
``` BASH
123+
```bash
124124
chmod +x /usr/sbin/policy-rc.d
125125
```
126126

127127
2. Run the following commands
128128

129-
``` BASH
129+
```bash
130130
dpkg-divert --local --rename --add /sbin/initctl
131131
ln -s /bin/true /sbin/initctl
132132
```
133133

134134
### How do I uninstall WSL?
135135

136136
Open a command prompt and run:
137-
``` CMD
137+
```batchfile
138138
lxrun /uninstall /full
139139
```
140140

@@ -159,7 +159,7 @@ The Windows Subsystem for Linux feature may be disabled during a Windows update.
159159
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.
160160

161161
The below example changes to locale to en-US:
162-
``` BASH
162+
```bash
163163
sudo update-locale LANG=en_US.UTF8
164164
```
165165

WSL/install-win10.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
2323
2424
2. Restart your computer when prompted.
2525
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
2728
2829
> 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).
2930
@@ -57,7 +58,7 @@ Enable the "Windows Subsystem for Linux" optional feature and reboot.
5758
5859
You're done! Now you can use your Linux environment.
5960
60-
## For Anniversary Update and Creators Update: Install using lxrun
61+
### For Anniversary Update and Creators Update: Install using lxrun
6162
lxrun installs Ubuntu user-mode by default on top of the Windows subsystem for Linux.
6263
6364
> 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
8586
8687
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).
8788
88-
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.
89+
After installation your Linux distribution will be located at: `%localappdata%\lxss\`.

WSL/wsl-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ Lists all distributions, including ones that aren't currently usable. They may
4646
There are three ways to launch and run WSL:
4747

4848
1. `wsl.exe` or `bash.exe`
49-
1. `wsl -c [command]` or `bash -c [command]`
49+
1. `wsl [command]` or `bash -c [command]`
5050
1. `[distro]` ie `ubuntu` -- this is the same as launching the installed app from the Windows menu.
5151

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.
5353

5454
`wslconfig /setdefault <DistributionName>`
5555
Sets the default distribution to `<DistributionName>`.

0 commit comments

Comments
 (0)