swapoff
Disable swapping on a device or file. toybox
On Linux
Linux
swapoff FILE
Linux
Disable devices and files for swapping. Note: path/to/file can either point to a regular file or a swap partition.
Disable a given swap area
sudo swapoff path/to/fileIdentifyDisable all swap areas in /proc/swaps
sudo swapoff --allIdentifyDisable a swap partition by its label
sudo swapoff -L labelIdentify