swapoff
Disable devices and files for swapping. Note: path/to/file can either point to a regular file or a swap partition. More information: <https://manned.org/swapoff>.
Install
- All systems
-
curl cmd.cat/swapoff.sh
- Debian
-
apt-get install mount - Ubuntu
-
apt-get install mount -
Alpine
-
apk add util-linux - Arch Linux
-
pacman -S util-linux - Kali Linux
-
apt-get install mount - CentOS
-
yum install util-linux - Fedora
-
dnf install util-linux - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install mount - OS X
-
brew install util-linux - Raspbian
-
apt-get install mount - Docker
-
docker run cmd.cat/swapoff swapoffpowered by Commando
Disable devices and files for swapping. Note: path/to/file can either point to a regular file or a swap partition. More information: <https://manned.org/swapoff>.
-
Disable a given swap area:
swapoff path/to/file -
Disable all swap areas in `/proc/swaps`:
swapoff --all -
Disable a swap partition by its label:
swapoff -L label
© tl;dr; authors and contributors