393 B
393 B
swapoff
Disable devices and files for swapping. Note:
path/to/filecan either point to a regular file or a swap partition. More information: https://manned.org/swapoff.8.
- Disable a given swap area:
sudo swapoff {{path/to/file}}
- Disable all swap areas in
/proc/swaps:
sudo swapoff {{[-a|--all]}}
- Disable a swap partition by its label:
sudo swapoff -L {{label}}