Disable swap – Ubuntu (Linux)

PROBLEM: I do not need swap.
SOLUTION: One command swap disable.

[?] What is swap?
https://www.linux.com/news/all-about-linux-swap-space

Run:

root@server:~# swapoff -a

And remove swap entry from fstab (the second line only!)

And reboot the system.

Leave a Reply

Your email address will not be published. Required fields are marked *