How do I remove a swap file in Red Hat Enterprise Linux?
Updated -
-
At a shell prompt as root, execute the following command to disable the swap file (where
/swapfile
is the swap file):swapoff /swapfile
-
Remove its entry from
/etc/fstab
. -
Remove the actual file:
rm /swapfile
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.