Skip to content

Commit e9ee132

Browse files
LeenuusLeenuus
andauthored
Fix: use sudo tee instead of sudo cat; use mkdir -p instead of mkdir (#43)
Co-authored-by: Leenuus <[email protected]>
1 parent 0c6f5c8 commit e9ee132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tutorials/installation/Networking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ nix shell nixpkgs#cowsay --option substituters "https://mirrors.tuna.tsinghua.ed
7171
理加速 nix 的网络访问:
7272

7373
```bash
74-
sudo mkdir /run/systemd/system/nix-daemon.service.d/
75-
cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
74+
sudo mkdir -p /run/systemd/system/nix-daemon.service.d/
75+
sudo tee /run/systemd/system/nix-daemon.service.d/override.conf << EOF
7676
[Service]
7777
Environment="https_proxy=socks5h://localhost:7891"
7878
EOF

0 commit comments

Comments
 (0)