Skip to content

Commit 1eba11b

Browse files
Updated wsl_config.md (#2272)
1 parent 6b8be47 commit 1eba11b

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

WSL/wsl-config.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,35 +161,35 @@ The `wsl.conf` sample file below demonstrates some of the configuration options
161161
[automount]
162162

163163
# Set to true will automount fixed drives (C:/ or D:/) with DrvFs under the root directory set above. Set to false means drives won't be mounted automatically, but need to be mounted manually or with fstab.
164-
enabled = true
164+
enabled=true
165165

166166
# Sets the directory where fixed drives will be automatically mounted. This example changes the mount location, so your C-drive would be /c, rather than the default /mnt/c.
167-
root = /
167+
root=/
168168

169169
# DrvFs-specific options can be specified.
170-
options = "metadata,uid=1003,gid=1003,umask=077,fmask=11,case=off"
170+
options="metadata,uid=1003,gid=1003,umask=077,fmask=11,case=off"
171171

172172
# Sets the `/etc/fstab` file to be processed when a WSL distribution is launched.
173-
mountFsTab = true
173+
mountFsTab=true
174174

175175
# Network host settings that enable the DNS server used by WSL 2. This example changes the hostname, sets generateHosts to false, preventing WSL from the default behavior of auto-generating /etc/hosts, and sets generateResolvConf to false, preventing WSL from auto-generating /etc/resolv.conf, so that you can create your own (ie. nameserver 1.1.1.1).
176176
[network]
177-
hostname = DemoHost
178-
generateHosts = false
179-
generateResolvConf = false
177+
hostname=DemoHost
178+
generateHosts=false
179+
generateResolvConf=false
180180

181181
# Set whether WSL supports interop processes like launching Windows apps and adding path variables. Setting these to false will block the launch of Windows processes and block adding $PATH environment variables.
182182
[interop]
183-
enabled = false
184-
appendWindowsPath = false
183+
enabled=false
184+
appendWindowsPath=false
185185

186186
# Set the user when launching a distribution with WSL.
187187
[user]
188-
default = DemoUser
188+
default=DemoUser
189189

190190
# Set a command to run when a new WSL instance launches. This example starts the Docker container service.
191191
[boot]
192-
command = service docker start
192+
command=service docker start
193193
```
194194

195195
## .wslconfig

0 commit comments

Comments
 (0)