Removing a Swap File

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

Comments

Popular posts from this blog

A-Z Index of the Apple OS X command line

Archiving File Systems With ACLs

A-Z Index of the Linux BASH command line