Skip to content

Commit 9fb15bc

Browse files
committed
General System Tweaks: Updated echo command to avoid a "permission
denied" error when trying to append into a new line
1 parent f0d09be commit 9fb15bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/docs/configuration/general_system_tweaks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ This guide assumes you have the default CachyOS setup with ZRam enabled and no s
411411
```
412412
4. Add the swap file to `/etc/fstab` to make it persistent across reboots:
413413
```bash
414-
sudo echo "/swap/swapfile none swap defaults 0 0" >> /etc/fstab
414+
echo "/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
415415
```
416416
</Steps>
417417
</details>
@@ -432,7 +432,7 @@ This guide assumes you have the default CachyOS setup with ZRam enabled and no s
432432
```
433433
4. Add the swap file to `/etc/fstab` to make it persistent across reboots:
434434
```bash
435-
sudo echo "/swapfile none swap defaults 0 0" >> /etc/fstab
435+
echo "/swapfile none swap defaults 0 0" | sudo tee -a /etc/fstab
436436
```
437437
5. Activate the swap file:
438438
```

0 commit comments

Comments
 (0)