Remove Linux Swapfile

1. Disable Swap File

$ sudo swapoff -v /swapfile

2. Remove entry from /etc/fstab

/swapfile swap swap defaults 0 0

3. Remove Swap File

$ sudo rm /swapfile

Leave a Reply

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