15.2.3. Removing a Swap File
To remove a swap file:
Procedure 15.5. Remove a swap file
- At a shell prompt, execute the following command to disable the swap file (where
/swapfile
is the swap file):Copy to Clipboard Copied! Toggle word wrap Toggle overflow swapoff -v /swapfile
# swapoff -v /swapfile
- Remove its entry from the
/etc/fstab
file. - Remove the actual file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow rm /swapfile
# rm /swapfile