====== Ubuntu - Swap - Remove a Swap File ====== ===== Disable the swap file ===== swapoff -v swapfile ---- ===== Remove the swap file from /etc/fstab ===== swapfile none swap defaults 0 0 ---- ===== Remove the actual swap file ===== rm /swapfile
swapoff -v swapfile
rm /swapfile