# disable swap sudo swapoff -a # keeps the swap off during reboot sudo sed -i '/ swap / s/^(.*)$/#1/g' /etc/fstab