We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 048669d commit 4c83b10Copy full SHA for 4c83b10
content/operate/rs/installing-upgrading/configuring/linux-swap.md
@@ -27,8 +27,8 @@ must have `sudo` access or be a root user to run the following commands:
27
sudo swapoff -a
28
```
29
30
-1. Comment out the swap partitions configured in the OS so swap remains off even after a reboot:
+1. Comment out the swap partitions configured in `/etc/fstab` so swap remains off even after a reboot:
31
32
```sh
33
- sudo sed -i.bak '/ swap / s/^(.*)$/#1/g' /etc/fstab
+ sudo sed -i.bak 's/^[^#].*swap.*/#&/' /etc/fstab
34
0 commit comments