swapoff
Disables device or file for swapping. More information: https://manned.org/swapoff.
- Disable a given swap partition:
swapoff {{/dev/sdb7}}
- Disable a given swap file:
swapoff {{path/to/file}}
- Disable all swap areas:
swapoff -a
- Disable swap by label of a device or file:
swapoff -L {{swap1}}
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.