How do I delete swapfile?

Linh Chi

New member
How do I delete swapfile?
Answer
To remove a swap file:
  1. At a shell prompt as root, execute the following command to disable the swap file (where /swapfile is the swap file): # swapoff -v /swapfile.
  2. Remove its entry from the /etc/fstab file.
  3. Remove the actual file: # rm /swapfile.
 

Tìm kiếm

Back
Top