How do I swap off Ubuntu?

How do I swap off Ubuntu?
Answer
To deactivate and remove the swap file, follow these steps:
  1. Start by deactivating the swap space by typing: sudo swapoff -v /swapfile.
  2. Next, remove the swap file entry /swapfile swap swap defaults 0 0 from the /etc/fstab file.
  3. Finally, remove the actual swapfile file using the rm command: sudo rm /swapfile.
 

Tìm kiếm

Back
Top