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
- Disable all swap areas in
/proc/swaps:
sudo swapoff
- Disable a swap partition by its label:
sudo swapoff -L
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
