Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sudo swapoff

# disable swap 
sudo swapoff -a

# keeps the swap off during reboot
sudo sed -i '/ swap / s/^(.*)$/#1/g' /etc/fstab
 
PREVIOUS NEXT
Tagged: #sudo #swapoff
ADD COMMENT
Topic
Name
3+5 =